Skip to content

Commit e3e2cd9

Browse files
committed
fixup! sensitive jobs on fork pr runs
Signed-off-by: Sam Gammon <[email protected]>
1 parent 56bb0f0 commit e3e2cd9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/codeql.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: "CodeQL"
22

33
on:
4-
workflow_call: {}
4+
workflow_call:
5+
inputs:
6+
publish:
7+
type: boolean
8+
description: "Publish SARIF"
9+
default: true
10+
511
workflow_dispatch: {}
612
push:
713
branches: ["master"]

.github/workflows/on.pr.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
contents: write
2727
id-token: write
2828
with:
29-
provenance: true
29+
provenance: ${{ github.event.pull_request.head.repo.full_name == 'google/guava' }}
3030
provenance_publish: false
3131
snapshot: false
3232

@@ -62,3 +62,5 @@ jobs:
6262
actions: read
6363
contents: read
6464
security-events: write
65+
with:
66+
publish: ${{ github.event.pull_request.head.repo.full_name == 'google/guava' }}

0 commit comments

Comments
 (0)