1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-14 20:56:42 +00:00

github: specify workflow permissions

Update gh-pages has started failing with default permissions. It needs
write permissions to be able to push to the gh-pages branch.
This commit is contained in:
Markus Lehtonen 2024-10-14 21:59:54 +03:00 committed by k8s-infra-cherrypick-robot
parent 01446d27f7
commit b024fa1a79
2 changed files with 10 additions and 1 deletions

View file

@ -10,12 +10,16 @@ on:
concurrency:
group: gh-pages
permissions:
contents: read
jobs:
update-docs:
name: Update gh-pages documentation
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install dependencies
run: |
sudo apt-get install -y jq curl

View file

@ -6,10 +6,15 @@ on:
concurrency:
group: gh-pages
permissions:
contents: read
jobs:
update-helm-repo:
name: Update gh-pages helm repo index
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install Helm
uses: azure/setup-helm@v3