Skip to content

Commit

Permalink
Merge pull request #779 from pi1814/master
Browse files Browse the repository at this point in the history
Changes to set minimum token permissions for the GITHUB_TOKEN in yaml files
  • Loading branch information
k8s-ci-robot authored Dec 17, 2023
2 parents 64508ed + 20cee90 commit 0ec39c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/helm_chart_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ on:
paths:
- "charts/**"

permissions:
contents: read

jobs:
release:
permissions:
contents: write # for helm/chart-releaser-action to push chart release and create a release
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -25,4 +30,4 @@ jobs:
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
config: .github/cr.yaml
config: .github/cr.yaml
3 changes: 3 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
paths:
- version.txt

permissions:
contents: read

jobs:
tag:
if: ${{ github.repository == 'kubernetes/cloud-provider-aws' }}
Expand Down

0 comments on commit 0ec39c2

Please sign in to comment.