Skip to content

Commit ada4ac6

Browse files
Generalize action version guidance
Document the latest-release SHA pinning pattern without hard-coding a release in the authentication guide. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent ba92a24 commit ada4ac6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/content/guides/github-app-authentication.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ The scopes have separate ceilings:
8080

8181
## Token injection
8282

83-
The token action is pinned and exposes its output only to the steps that need GitHub API access:
83+
Use the latest released version of the token action, resolved to its full immutable commit SHA. Record the exact
84+
release tag in the trailing comment. The token action exposes its output only to the steps that need GitHub API access:
8485

8586
```yaml
8687
- name: Create GitHub App token
8788
id: App-Token
88-
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
89+
uses: actions/create-github-app-token@<sha> # vx.y.z
8990
with:
9091
client-id: ${{ secrets.GitHubAppClientId }}
9192
private-key: ${{ secrets.GitHubAppPrivateKey }}

0 commit comments

Comments
 (0)