Skip to content

Commit

Permalink
github: specify workflow permissions
Browse files Browse the repository at this point in the history
Update gh-pages has started failing with default permissions. It needs
write permissions to be able to push to the gh-pages branch.
  • Loading branch information
marquiz authored and k8s-infra-cherrypick-robot committed Oct 14, 2024
1 parent e838324 commit 5f605f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v4
Expand Down

0 comments on commit 5f605f0

Please sign in to comment.