Merge pull request #81 from sublinks/dependabot/go_modules/gorm.io/go… #65
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: Go Dependency Submission | |
on: | |
push: | |
branches: | |
- main | |
# The API requires write permission on the repository to submit dependencies | |
permissions: | |
contents: write | |
jobs: | |
go-action-detection: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout Repository' | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "^1.22" | |
- run: go version | |
- name: Run snapshot action | |
uses: actions/go-dependency-submission@v2 | |
with: | |
# Required: Define the repo path to the go.mod file used by the | |
# build target | |
go-mod-path: go.mod | |
# | |
# Optional: Define the path of a build target (a file with a | |
# `main()` function) If not defined, this Action will collect all | |
# dependencies used by all build targets for the module, which may | |
# include Go dependencies used by tests and tooling. | |
go-build-target: cmd/federation.go |