Skip to content

Commit 2f986b0

Browse files
committed
chore(workflows): add github-token to security scan jobs
1 parent 44a1cf8 commit 2f986b0

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/fortress-security-scans.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999
go-secondary-version: ${{ inputs.go-primary-version }}
100100
go-sum-file: ${{ inputs.go-sum-file }}
101101
enable-multi-module: ${{ env.ENABLE_MULTI_MODULE_TESTING }}
102+
github-token: ${{ secrets.github-token }}
102103

103104
# --------------------------------------------------------------------
104105
# Extract Go module directory from GO_SUM_FILE path
@@ -297,6 +298,7 @@ jobs:
297298
go-secondary-version: ${{ inputs.go-primary-version }}
298299
go-sum-file: ${{ inputs.go-sum-file }}
299300
enable-multi-module: ${{ env.ENABLE_MULTI_MODULE_TESTING }}
301+
github-token: ${{ secrets.github-token }}
300302

301303
# --------------------------------------------------------------------
302304
# Extract Go module directory from GO_SUM_FILE path

.github/workflows/scorecard.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ jobs:
3232
security-events: write
3333
# Needed to publish results and get a badge (see publish_results below).
3434
id-token: write
35-
# Uncomment the permissions below if installing in a private repository.
36-
# contents: read
37-
# actions: read
35+
# Needed to checkout the repository.
36+
contents: read
3837

3938
steps:
4039
- name: "Checkout code"

0 commit comments

Comments
 (0)