We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ac2fc1 commit 8144da9Copy full SHA for 8144da9
.github/workflows/rogue.yml
@@ -1,7 +1,7 @@
1
name: Rogue
2
3
on:
4
- pull_request:
+ pull_request_target:
5
push:
6
branches:
7
- main
@@ -11,9 +11,17 @@ jobs:
11
rogue_sanity:
12
runs-on: ubuntu-latest
13
timeout-minutes: 15
14
+ environment: rogue-sanity-ci-secrets
15
steps:
16
- name: Checkout Repository
17
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
25
26
- name: Install uv
27
uses: astral-sh/setup-uv@v5
0 commit comments