File tree 3 files changed +33
-5
lines changed
3 files changed +33
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Go Dependency Submission
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ # The API requires write permission on the repository to submit dependencies
9
+ permissions :
10
+ contents : write
11
+
12
+ jobs :
13
+ go-action-detection :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout Source
17
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18
+ with :
19
+ fetch-depth : 0
20
+
21
+ - name : Install Go
22
+ uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
23
+ with :
24
+ go-version : latest
25
+ cache : true
26
+
27
+ - name : Run snapshot action
28
+ uses : actions/go-dependency-submission@v1
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
Original file line number Diff line number Diff line change 33
33
- name : Install Go
34
34
uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
35
35
with :
36
- go-version : ' 1.21 '
36
+ go-version : latest
37
37
cache : true
38
38
39
39
- name : golangci-lint
Original file line number Diff line number Diff line change 1
1
---
2
- # This workflow uses actions that are not certified by GitHub. They are provided
3
- # by a third-party and are governed by separate terms of service, privacy
4
- # policy, and support documentation.
5
-
6
2
name : PR Dependency Review
7
3
on : [pull_request]
8
4
You can’t perform that action at this time.
0 commit comments