Skip to content

Commit 8144da9

Browse files
authored
Allow rogue_sanity on PRs (#108)
fixes #107
1 parent 2ac2fc1 commit 8144da9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/rogue.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Rogue
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
push:
66
branches:
77
- main
@@ -11,9 +11,17 @@ jobs:
1111
rogue_sanity:
1212
runs-on: ubuntu-latest
1313
timeout-minutes: 15
14+
environment: rogue-sanity-ci-secrets
1415
steps:
1516
- name: Checkout Repository
1617
uses: actions/checkout@v4
18+
with:
19+
# 1. Checkout the actual PR commit, not just the base branch
20+
ref: ${{ github.event.pull_request.head.sha }}
21+
# 2. DO NOT expose the GITHUB_TOKEN write-permissions to the untrusted code
22+
# This is essential to prevent untrusted code from exfiltrating secrets
23+
# by manipulating the repository itself.
24+
persist-credentials: false
1725

1826
- name: Install uv
1927
uses: astral-sh/setup-uv@v5

0 commit comments

Comments
 (0)