Skip to content

Commit 5534bce

Browse files
Set Actions token permissions to minimum required. (#1014)
Each of the three Actions workflows requires fewer permissions than GITHUB_TOKEN has by default, so each of them are now configured with the minimum permissions required. Co-authored-by: Anthony Gomez <[email protected]>
1 parent 46e6b20 commit 5534bce

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/dependabot_changelog_update.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Generate changelog entry for Dependabot
2+
permissions:
3+
contents: read
24

35
on:
46
pull_request:

.github/workflows/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
repository_dispatch:
1010
types: [ok-to-test-command] # corresponds to ./ok-to-test.yml `commands:` field
1111
name: Pull request
12+
permissions:
13+
contents: read
1214
jobs:
1315
changelog:
1416
if: github.actor != 'dependabot[bot]'

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
99
# secret. We use the fastly fork to ensure safety GPG handling.
1010
name: release
11+
permissions:
12+
contents: write
1113
on:
1214
push:
1315
tags:

0 commit comments

Comments
 (0)