Skip to content

Commit 86b04fb

Browse files
committed
Add a warning to not specify a token input in most cases.
1 parent 51de6a8 commit 86b04fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

analyze/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ inputs:
7474
required: true
7575
default: "true"
7676
token:
77-
description: "GitHub token to use for authenticating with this instance of GitHub. The token must be the built-in GitHub Actions token, and the workflow must have the `security-events: write` permission."
77+
description: "GitHub token to use for authenticating with this instance of GitHub. The token must be the built-in GitHub Actions token, and the workflow must have the `security-events: write` permission. Most of the time it is advisable to avoid specifying this input so that the workflow falls back to using the default value."
7878
required: false
7979
default: ${{ github.token }}
8080
matrix:

upload-sarif/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ inputs:
2020
description: "The sha of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable. If provided, the ref input must be provided as well. This input is ignored for pull requests from forks."
2121
required: false
2222
token:
23-
description: "GitHub token to use for authenticating with this instance of GitHub. The token must be the built-in GitHub Actions token, and the workflow must have the `security-events: write` permission."
23+
description: "GitHub token to use for authenticating with this instance of GitHub. The token must be the built-in GitHub Actions token, and the workflow must have the `security-events: write` permission. Most of the time it is advisable to avoid specifying this input so that the workflow falls back to using the default value."
2424
required: false
2525
default: ${{ github.token }}
2626
matrix:

0 commit comments

Comments
 (0)