Skip to content

Commit

Permalink
GitHub Actions: fix permissions in reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Dec 4, 2024
1 parent 9ae0317 commit c2fdc01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
needs: gradleValidation
uses: ./.github/workflows/reusable-unitTests.yml
secrets: inherit
permissions:
checks: write

integrationTests:
name: Integration Tests
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/reusable-unitTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
name: Gradle 8.11 @ ubuntu-latest
uses: ./.github/workflows/reusable-single-unitTest.yml
secrets: inherit
permissions:
checks: write
with:
gradleVersion: "8.11"
os: ubuntu-latest
Expand All @@ -16,6 +18,8 @@ jobs:
needs: baseUnitTest
uses: ./.github/workflows/reusable-single-unitTest.yml
secrets: inherit
permissions:
checks: write
with:
gradleVersion: ${{ matrix.gradleVersion }}
os: ${{ matrix.os }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/single-unitTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
name: Gradle ${{ inputs.gradleVersion }} @ ${{ inputs.os }}
uses: ./.github/workflows/reusable-single-unitTest.yml
secrets: inherit
permissions:
checks: write
with:
gradleVersion: ${{ inputs.gradleVersion }}
os: ${{ inputs.os }}
Expand Down

0 comments on commit c2fdc01

Please sign in to comment.