Skip to content

Commit a711f18

Browse files
authored
ci: trust tap formulae for brew doctor (least-privilege) (#27)
1 parent e46e143 commit a711f18

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ jobs:
3030

3131
- run: brew test-bot --only-cleanup-before
3232

33+
# Explicitly trust only this tap's own formulae so `brew doctor`
34+
# (run by `--only-setup`) passes once Homebrew enforces tap trust.
35+
# Least-privilege: scoped to the two formulae in this repo, on the
36+
# ephemeral CI runner only. We deliberately avoid
37+
# HOMEBREW_NO_REQUIRE_TAP_TRUST, which disables the trust control.
38+
- run: brew trust --formula grafana/pyroscope/pyroscope grafana/pyroscope/profilecli
39+
3340
- run: brew test-bot --only-setup
3441

3542
- run: brew test-bot --only-tap-syntax

0 commit comments

Comments
 (0)