Skip to content

Commit

Permalink
Add GitHub workflows for dependency submission and review
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Apr 4, 2024
1 parent 98aba69 commit 9fb6c10
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/dependency-review.yml
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
30 changes: 30 additions & 0 deletions .github/workflows/dependency-submission.yml
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"

0 comments on commit 9fb6c10

Please sign in to comment.