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