Skip to content

Commit 66dd01c

Browse files
authored
Reduce scopes granted to GITHUB_TOKEN in GitHub Actions workflows (#678)
As part of security-hardening our GHA workflows, this reduces the permissions granted to the automatically set `GITHUB_TOKEN` env var in GitHub Actions workflows to no more than what is required by that workflow. See: https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication GUS-W-18053749.
1 parent 4d21104 commit 66dd01c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/update-lifecycle.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- cron: '0 8 * * MON'
77
workflow_dispatch:
88

9+
# Disable all GITHUB_TOKEN permissions, since the GitHub App token is used instead.
10+
permissions: {}
11+
912
jobs:
1013
update-lifecycle:
1114
name: Update lifecycle

0 commit comments

Comments
 (0)