Skip to content

Commit 610b324

Browse files
committed
fix(ci): pin create-github-app-token to a commit SHA
This action mints an installation token from the tap App's private key, so pin it to an immutable commit (v2.2.2) rather than the movable v2 tag to remove the supply-chain risk of a retagged release exfiltrating the key. Addresses CodeRabbit review on #28.
1 parent eadef6d commit 610b324

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/homebrew-tap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
# other than the one this workflow runs in.
7979
- name: Mint GitHub App token for the tap repo
8080
id: app-token
81-
uses: actions/create-github-app-token@v2
81+
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
8282
with:
8383
app-id: ${{ secrets.HOMEBREW_TAP_APP_ID }}
8484
private-key: ${{ secrets.HOMEBREW_TAP_APP_PRIVATE_KEY }}

0 commit comments

Comments
 (0)