Skip to content
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
5 changes: 5 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
with:
client-id: ${{ vars.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
# Least-privilege token scope for semantic-release: publish releases/tags
# (contents) and comment on released issues/PRs (issues, pull-requests).
permission-contents: write
permission-issues: write
permission-pull-requests: write

- name: πŸ“‘ Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/enable-auto-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
# Least-privilege token scope: approving and enabling auto-merge on PRs.
permission-contents: write
permission-pull-requests: write

- name: βœ… Approve PR
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/sync-cluster-policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
# Least-privilege token scope: checkout and open the sync PR.
permission-contents: write
permission-pull-requests: write
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/validate-go-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ jobs:
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
# Least-privilege token scope: only pushes linter auto-fixes back to the PR
# branch (contents); the token is never used for PR/issue API calls.
permission-contents: write

- name: πŸ“„ Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -192,6 +195,9 @@ jobs:
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
# Least-privilege token scope: only pushes linter auto-fixes back to the PR
# branch (contents); the token is never used for PR/issue API calls.
permission-contents: write

- name: πŸ“„ Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -298,6 +304,10 @@ jobs:
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
# Least-privilege token scope: only pushes MegaLinter auto-fixes back to the
# PR branch (contents). MegaLinter's PR/issue reporting uses the default
# GITHUB_TOKEN (job permissions below), not this App token.
permission-contents: write

- name: πŸ“„ Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
Loading