Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: updating permissions for workflow files #594

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading