mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 01:59:25 +00:00
Add explicit permissions to workflows (#6700)
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
36
.github/workflows/updatecli.yaml
vendored
Normal file
36
.github/workflows/updatecli.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: "Updatecli: Dependency Management"
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Runs at 06 PM UTC
|
||||
- cron: '0 18 * * *'
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
updatecli:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/master'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.19.4'
|
||||
|
||||
- name: Install Updatecli
|
||||
uses: updatecli/updatecli-action@v2
|
||||
|
||||
- name: Apply Updatecli
|
||||
# Never use '--debug' option, because it might leak the access tokens.
|
||||
run: "updatecli apply --clean --config ./updatecli/updatecli.d/ --values ./updatecli/values.yaml"
|
||||
env:
|
||||
UPDATECLI_GITHUB_ACTOR: ${{ github.actor }}
|
||||
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user