Skip to content

Commit 2cac989

Browse files
saritaicourtneycl
andauthored
Apply suggestions from code review
Co-authored-by: Courtney Claessens <[email protected]>
1 parent aeafa49 commit 2cac989

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

content/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ on:
4040
push:
4141
branches:
4242
- main
43+
44+
# The API requires write permission on the repository to submit dependencies
45+
permissions:
46+
contents: write
47+
4348
# Envionment variables to configure Go and Go modules. Customize as necessary
4449
env:
4550
GOPROXY: '' # A Go Proxy server to be used
@@ -50,11 +55,13 @@ jobs:
5055
steps:
5156
- name: 'Checkout Repository'
5257
uses: {% data reusables.actions.action-checkout %}
58+
5359
- uses: {% data reusables.actions.action-setup-go %}
5460
with:
5561
go-version: ">=1.18.0"
62+
5663
- name: Run snapshot action
57-
uses: @dsp-testing/go-snapshot-action
64+
uses: @actions/go-dependency-submission@main
5865
with:
5966
# Required: Define the repo path to the go.mod file used by the
6067
# build target

0 commit comments

Comments
 (0)