Skip to content

Commit

Permalink
ci: write permissions to maven-dependency-submission
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Solórzano <[email protected]>
  • Loading branch information
jorsol committed Jun 10, 2024
1 parent c74d149 commit c859caf
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ name: Java CI with Maven

on:
push:
branches: [ "main" ]
branches: [$default-branch]
pull_request:
branches: [ "main" ]
branches: [$default-branch]

jobs:
build:
runs-on: "ubuntu-latest"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
Expand All @@ -23,6 +23,12 @@ jobs:
- name: Build with Maven
run: ./mvnw -B verify -P checks,run-its

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@5d0f9011b55d6268922128af45275986303459c3
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
dependency-submission:
runs-on: ubuntu-latest
permissions:
contents: write #required for POST snapshot API https://docs.github.com/en/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository
steps:
- uses: actions/checkout@v4
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@5d0f9011b55d6268922128af45275986303459c3

0 comments on commit c859caf

Please sign in to comment.