Skip to content

Commit

Permalink
chore: updating permissions for workflow files (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
smritidahal653 committed Jan 23, 2024
1 parent 686e388 commit d97df1b
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
version: 2

permissions:
pull-requests: write
security-events: write
contents: read
actions: read

updates:
- package-ecosystem: "github-actions"
directory: "/"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/aks-addon-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ env:
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
actions: read #This is required for reading environment variables
deployments: read #This is required for reading deployment status

jobs:
aks-addon-e2e-tests:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:

permissions:
contents: write
actions: read
deployments: read
contents: read

jobs:
publish-helm-chart:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/create-release-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
permissions:
contents: write
pull-requests: write
actions: read
deployments: read

jobs:
create-release-pull-request:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ on:
permissions:
contents: write
packages: write

actions: read
deployments: read
pull-requests: read

env:
REGISTRY: ghcr.io
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ env:
E2E_IMG_TAG: "e2e-ci"

permissions:
id-token: write
contents: read
id-token: write
contents: read
actions: read
deployments: read

jobs:
e2e-tests:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/markdown-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- '**.md'
- 'docs/**'

permissions:
contents: read
actions: read
deployments: read

jobs:
markdown-link-check:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pr-title-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
- labeled
- unlabeled

permissions:
contents: read
actions: read
deployments: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ env:
# Common versions
GO_VERSION: '1.20'

permissions:
pull-requests: write
contents: read
actions: read
deployments: read

jobs:
unit-tests:
runs-on: ubuntu-20.04
Expand Down

0 comments on commit d97df1b

Please sign in to comment.