-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub workflows for dependency submission and review
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Submits a dependency graph and performs dependency review on every pull request | ||
name: Dependency review for pull requests | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
dependency-submission: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up the JDK used to run Gradle | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Generate and submit dependency graph for the PR | ||
uses: gradle/actions/dependency-submission@v3 | ||
with: | ||
build-scan-publish: true | ||
build-scan-terms-of-service-url: "https://gradle.com/terms-of-service" | ||
build-scan-terms-of-service-agree: "yes" | ||
|
||
dependency-review: | ||
needs: dependency-submission | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Perform dependency review | ||
uses: actions/dependency-review-action@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Submits a dependency graph on every push to 'main' | ||
name: Dependency Submission | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
dependency-submission: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up the JDK used to run Gradle | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Generate and submit dependency graph | ||
uses: gradle/actions/dependency-submission@v3 | ||
with: | ||
build-scan-publish: true | ||
build-scan-terms-of-service-url: "https://gradle.com/terms-of-service" | ||
build-scan-terms-of-service-agree: "yes" |