You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,11 @@ on:
40
40
push:
41
41
branches:
42
42
- main
43
+
44
+
# The API requires write permission on the repository to submit dependencies
45
+
permissions:
46
+
contents: write
47
+
43
48
# Envionment variables to configure Go and Go modules. Customize as necessary
44
49
env:
45
50
GOPROXY: ''# A Go Proxy server to be used
@@ -50,11 +55,13 @@ jobs:
50
55
steps:
51
56
- name: 'Checkout Repository'
52
57
uses: {% data reusables.actions.action-checkout %}
58
+
53
59
- uses: {% data reusables.actions.action-setup-go %}
54
60
with:
55
61
go-version: ">=1.18.0"
62
+
56
63
- name: Run snapshot action
57
-
uses: @dsp-testing/go-snapshot-action
64
+
uses: @actions/go-dependency-submission@main
58
65
with:
59
66
# Required: Define the repo path to the go.mod file used by the
0 commit comments