Submit transitive dependencies to dependency graph #1
Workflow file for this run
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
name: Publish dependencies to dependency graph | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
dependency-submission: | |
permissions: | |
contents: write # Required for submitting dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Golang environment | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23.1' | |
# This will also publish transitive dependencies not in go.mod | |
- name: Run snapshot action | |
uses: actions/go-dependency-submission@v2 | |
# Comment on PRs | |
- name: Perform dependency review | |
uses: actions/dependency-review-action@v4 | |
if: github.event_name == 'pull_request' |