Skip to content

Commit 39ffa00

Browse files
authored
Merge pull request #2279 from dalehenries/token-permissions
ci: token permissions - security slam task 16
2 parents a73ae3d + 1fe8e08 commit 39ffa00

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/govulncheck.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
env:
99
GO_VERSION: "^1.21"
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
ci-security-checks:
1316
runs-on: ubuntu-latest

.github/workflows/semantic.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ on:
77
- edited
88
- synchronize
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
main:
15+
permissions:
16+
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
17+
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
1218
name: Validate PR title for semantic commit message
1319
runs-on: ubuntu-latest
1420
steps:

0 commit comments

Comments
 (0)