Skip to content

Commit efc8749

Browse files
Improving OSSF Scorecard score - Part 1 (#32)
* Improving OSSF Scorecard score - Part 1 As of this writing, https://securityscorecards.dev/viewer/?uri=github.com%2Fboostsecurityio%2Fpoutine: ``` Reason detected GitHub workflow tokens with excessive permissions Details Warn: topLevel 'security-events' permission set to 'write': .github/workflows/pop.yml:17 Warn: topLevel 'contents' permission set to 'write': .github/workflows/release.yml:15 Warn: topLevel 'packages' permission set to 'write': .github/workflows/release.yml:16 ``` Signed-off-by: François Proulx <[email protected]> * Update release.yml Signed-off-by: François Proulx <[email protected]> * Update build_test.yml Signed-off-by: François Proulx <[email protected]> * Update codeql.yml Signed-off-by: François Proulx <[email protected]> * Update dependency-review.yml Signed-off-by: François Proulx <[email protected]> * Update build_test.yml Signed-off-by: François Proulx <[email protected]> * Update build_test.yml Signed-off-by: François Proulx <[email protected]> --------- Signed-off-by: François Proulx <[email protected]>
1 parent 9ece535 commit efc8749

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

.github/workflows/codeql.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ on:
1717
pull_request:
1818
# The branches below must be a subset of the branches above
1919
branches: ["main"]
20+
paths-ignore:
21+
- 'README.md'
22+
- 'LICENSE'
23+
- 'docs/**'
24+
- '.github/**'
2025
schedule:
2126
- cron: "0 0 * * 1"
2227

.github/workflows/dependency-review.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
#
88
# Source repository: https://github.com/actions/dependency-review-action
99
name: 'Dependency Review'
10-
on: [pull_request]
10+
on:
11+
pull_request:
12+
paths-ignore:
13+
- 'README.md'
14+
- 'LICENSE'
15+
- 'docs/**'
1116

1217
permissions:
1318
contents: read

.github/workflows/pop.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ on:
1313
- .github/workflows/**
1414
- action.yml
1515

16-
permissions:
17-
security-events: write
18-
contents: read
16+
permissions: {}
1917

2018
jobs:
2119
pop:
2220
runs-on: ubuntu-latest
21+
permissions:
22+
security-events: write
23+
contents: read
2324
steps:
2425
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
2526
with:

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ env:
1111
GO_VERSION: 1.22
1212
GO_RELEASER_VERSION: v1.25.1
1313

14-
permissions:
15-
contents: write
16-
packages: write
17-
id-token: write
14+
permissions: {}
1815

1916
jobs:
2017
goreleaser:
2118
runs-on: ubuntu-latest
2219
environment: homebrew-tap
20+
permissions:
21+
contents: write
22+
packages: write
23+
id-token: write
2324
steps:
2425
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
2526
with:

0 commit comments

Comments
 (0)