Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 39e4bb9

Browse files
committed
Add README
1 parent f206792 commit 39e4bb9

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1-
# go-snapshot-action
2-
Go Snapshot Action
1+
# Go Snapshot Action
2+
3+
An action that creates a dependency submission using `go mod graph`.
4+
5+
To configure, you'll need to provide a GitHub token. Additional optional inputs include: `detector-name`, `detector-url`, `detector-version`, and `metadata` - a JSON of max eight keys to provide with the snapshot.
6+
7+
```
8+
name: Run snapshot action
9+
uses: ./go-snapshot-action
10+
with:
11+
token: ${{ secrets.GITHUB_TOKEN }}
12+
detector-name: go snapshot action
13+
detector-url: ${{ github.server_url }}/${{ github.repository }}
14+
detector-version: 1.0.0
15+
metadata: '{"lastModified": "22-04-2022"}'
16+
```

0 commit comments

Comments
 (0)