Skip to content

Commit

Permalink
ci: set up dependency submission for gha
Browse files Browse the repository at this point in the history
  • Loading branch information
tronghn committed Jun 21, 2024
1 parent 4d2b29c commit 8fab0eb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,15 @@ jobs:
dependency-graph: generate-and-submit
- name: Verify Gradle wrapper checksum
uses: gradle/wrapper-validation-action@8d49e559aae34d3e0eb16cde532684bc9702762b # ratchet:gradle/wrapper-validation-action@v1
- name: Build with Gradle

- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/actions/setup-gradle@v3
with:
dependency-graph: generate-and-submit

- name: Run the usual CI build (dependency-graph will be generated and submitted post-job)
run: ./gradlew build

- uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # ratchet:sigstore/[email protected]
- name: Verify distroless base image
run: |
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ jobs:
- name: Verify Gradle wrapper checksum
uses: gradle/wrapper-validation-action@v1

- name: Build with Gradle
run: ./gradlew clean build
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/actions/setup-gradle@v3
with:
dependency-graph: generate-and-submit

- name: Run the usual CI build (dependency-graph will be generated and submitted post-job)
run: ./gradlew build

0 comments on commit 8fab0eb

Please sign in to comment.