Skip to content

Commit f620777

Browse files
committed
Fix some OSSF scorecard issues
1 parent 0c1a3d9 commit f620777

13 files changed

+51
-0
lines changed

.github/workflows/build-daily-no-build-cache.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- cron: "48 4 * * *"
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
common:
1114
uses: ./.github/workflows/build-common.yml
@@ -29,6 +32,8 @@ jobs:
2932
# anyway and so are already covered by the normal daily build
3033

3134
workflow-notification:
35+
permissions:
36+
issues: write
3237
needs:
3338
- common
3439
- test-latest-deps

.github/workflows/build-daily.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- cron: "24 3 * * *"
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
common:
1114
uses: ./.github/workflows/build-common.yml
@@ -32,6 +35,8 @@ jobs:
3235
uses: ./.github/workflows/reusable-misspell-check.yml
3336

3437
workflow-notification:
38+
permissions:
39+
issues: write
3540
needs:
3641
- common
3742
- test-latest-deps

.github/workflows/build-pull-request.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ concurrency:
1212
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
1313
cancel-in-progress: true
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
common:
1720
uses: ./.github/workflows/build-common.yml

.github/workflows/build.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- release/*
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
common:
1215
uses: ./.github/workflows/build-common.yml

.github/workflows/native-tests-daily.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ on:
66
- cron: "0 4 * * *"
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
graalvm-native-tests:
1114
uses: ./.github/workflows/reusable-native-tests.yml
1215
with:
1316
test-latest-deps: true
1417

1518
workflow-notification:
19+
permissions:
20+
issues: write
1621
needs:
1722
- graalvm-native-tests
1823
if: always()

.github/workflows/overhead-benchmark-daily.yml

+7
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ on:
55
- cron: "0 5 * * *"
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
run-overhead-tests:
13+
permissions:
14+
contents: write # for writing to the gh-pages branch
1015
runs-on: ubuntu-latest
1116
steps:
1217
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -50,6 +55,8 @@ jobs:
5055
committer_email: [email protected]
5156

5257
workflow-notification:
58+
permissions:
59+
issues: write
5360
needs:
5461
- run-overhead-tests
5562
if: always()

.github/workflows/owasp-dependency-check-daily.yml

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- cron: "30 1 * * *"
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
analyze:
1316
runs-on: ubuntu-latest
@@ -41,6 +44,8 @@ jobs:
4144
path: javaagent/build/reports
4245

4346
workflow-notification:
47+
permissions:
48+
issues: write
4449
needs:
4550
- analyze
4651
if: always()

.github/workflows/pr-smoke-test-grpc-images.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branches:
1010
- main
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417
uses: ./.github/workflows/reusable-smoke-test-images.yml

.github/workflows/pr-smoke-test-play-images.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branches:
1010
- main
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417
uses: ./.github/workflows/reusable-smoke-test-images.yml

.github/workflows/pr-smoke-test-quarkus-images.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branches:
1010
- main
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417
uses: ./.github/workflows/reusable-smoke-test-images.yml

.github/workflows/pr-smoke-test-security-manager-images.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branches:
1010
- main
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417
uses: ./.github/workflows/reusable-smoke-test-images.yml

.github/workflows/pr-smoke-test-servlet-images.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- "smoke-tests/images/servlet/**"
77
- ".github/workflows/pr-smoke-test-servlet-images.yml"
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
runs-on: ${{ matrix.os }}

.github/workflows/pr-smoke-test-spring-boot-images.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branches:
1010
- main
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417
uses: ./.github/workflows/reusable-smoke-test-images.yml

0 commit comments

Comments
 (0)