Skip to content

Commit

Permalink
add checks write permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Dec 11, 2023
1 parent 29e262f commit 4f5038b
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,30 @@ jobs:
name: maven-repo
path: ~/.m2/repository/com/yubico/yubikit/

- name: Publish SpotBugs reports
uses: lcollins/[email protected]
with:
path: ./**/build/reports/spotbugs/*.xml

- name: Upload build reports
uses: actions/upload-artifact@v3
if: always()
with:
name: build-reports
path: ./*/build/reports/*

spotbugs-report:
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- uses: actions/checkout@v3
- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Build with Gradle
run: NO_GPG_SIGN=true ./gradlew --stacktrace check


- name: Publish SpotBugs reports
uses: lcollins/[email protected]
with:
path: ./**/build/reports/spotbugs/*.xml

0 comments on commit 4f5038b

Please sign in to comment.