File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Go Dependency Submission
2+ on :
3+ push :
4+ branches :
5+ - master
6+
7+ # The API requires write permission on the repository to submit dependencies
8+ permissions :
9+ contents : write
10+
11+ # Environment variables to configure Go and Go modules. Customize as necessary
12+ env :
13+ GOPROXY : ' ' # A Go Proxy server to be used
14+ GOPRIVATE : ' ' # A list of modules are considered private and not requested from GOPROXY
15+
16+ jobs :
17+ go-action-detection :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : ' Checkout Repository'
21+ uses : actions/checkout@v3
22+
23+ - uses : actions/setup-go@v3
24+ with :
25+ go-version : " >=1.18.0"
26+
27+ - name : Run snapshot action
28+ uses : actions/go-dependency-submission@v2
29+ with :
30+ # Required: Define the repo path to the go.mod file used by the
31+ # build target
32+ go-mod-path : go.mod
33+ #
34+ # Optional: Define the path of a build target (a file with a
35+ # `main()` function) If not defined, this Action will collect all
36+ # dependencies used by all build targets for the module, which may
37+ # include Go dependencies used by tests and tooling.
38+ go-build-target : pkg/main.go
You can’t perform that action at this time.
0 commit comments