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

Commit b35953e

Browse files
authored
Merge pull request #1 from dsp-testing/lsep/default-token
Use Action default token
2 parents 39e4bb9 + e957c5e commit b35953e

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Go Snapshot Action
22

3-
An action that creates a dependency submission using `go mod graph`.
3+
An Action that creates a dependency submission using `go mod graph`.
44

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.
5+
Optional inputs for the Action include: `detector-name`, `detector-url`, `detector-version`, and `metadata` - a JSON of max eight keys to provide with the snapshot.
66

77
```
88
name: Run snapshot action
9-
uses: ./go-snapshot-action
9+
uses: @dsp-testing/go-snapshot-action
1010
with:
11-
token: ${{ secrets.GITHUB_TOKEN }}
11+
# All of the below have defaults, but can be overriden manually
1212
detector-name: go snapshot action
1313
detector-url: ${{ github.server_url }}/${{ github.repository }}
1414
detector-version: 1.0.0
1515
metadata: '{"lastModified": "22-04-2022"}'
16-
```
16+
```

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ description: 'Detects go dependencies in projects using go mod graph utility'
33
author: 'lorenanicole'
44
inputs:
55
token:
6-
required: true
7-
description: 'Personal access token for the GitHub API'
6+
description: "GitHub Personal Access Token (PAT). Defaults to PAT provided by Action runner"
7+
required: false
8+
default: ${{ github.token }}
89
detector-name:
910
required: false
1011
description: 'Name of the detector running the go action e.g. Go Snapshot Detector'

0 commit comments

Comments
 (0)