Skip to content

Commit

Permalink
Fix some OSSF scorecard issues
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Jan 31, 2025
1 parent 0c1a3d9 commit f620777
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-daily-no-build-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- cron: "48 4 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
common:
uses: ./.github/workflows/build-common.yml
Expand All @@ -29,6 +32,8 @@ jobs:
# anyway and so are already covered by the normal daily build

workflow-notification:
permissions:
issues: write
needs:
- common
- test-latest-deps
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- cron: "24 3 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
common:
uses: ./.github/workflows/build-common.yml
Expand All @@ -32,6 +35,8 @@ jobs:
uses: ./.github/workflows/reusable-misspell-check.yml

workflow-notification:
permissions:
issues: write
needs:
- common
- test-latest-deps
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions:
contents: read

jobs:
common:
uses: ./.github/workflows/build-common.yml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- release/*
workflow_dispatch:

permissions:
contents: read

jobs:
common:
uses: ./.github/workflows/build-common.yml
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/native-tests-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ on:
- cron: "0 4 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
graalvm-native-tests:
uses: ./.github/workflows/reusable-native-tests.yml
with:
test-latest-deps: true

workflow-notification:
permissions:
issues: write
needs:
- graalvm-native-tests
if: always()
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/overhead-benchmark-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ on:
- cron: "0 5 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
run-overhead-tests:
permissions:
contents: write # for writing to the gh-pages branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down Expand Up @@ -50,6 +55,8 @@ jobs:
committer_email: [email protected]

workflow-notification:
permissions:
issues: write
needs:
- run-overhead-tests
if: always()
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/owasp-dependency-check-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- cron: "30 1 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
analyze:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -41,6 +44,8 @@ jobs:
path: javaagent/build/reports

workflow-notification:
permissions:
issues: write
needs:
- analyze
if: always()
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-smoke-test-grpc-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build:
uses: ./.github/workflows/reusable-smoke-test-images.yml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-smoke-test-play-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build:
uses: ./.github/workflows/reusable-smoke-test-images.yml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-smoke-test-quarkus-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build:
uses: ./.github/workflows/reusable-smoke-test-images.yml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-smoke-test-security-manager-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build:
uses: ./.github/workflows/reusable-smoke-test-images.yml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-smoke-test-servlet-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- "smoke-tests/images/servlet/**"
- ".github/workflows/pr-smoke-test-servlet-images.yml"

permissions:
contents: read

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-smoke-test-spring-boot-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build:
uses: ./.github/workflows/reusable-smoke-test-images.yml
Expand Down

0 comments on commit f620777

Please sign in to comment.