Skip to content

Commit 3d5de58

Browse files
authored
Add Scanning Pattern for Forks (#1457)
1 parent 0e96641 commit 3d5de58

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Security Scan (PRs from forks)
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
permissions:
8+
contents: read
9+
actions: read
10+
11+
jobs:
12+
analyze:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
ref: ${{ github.event.pull_request.head.sha }}
18+
19+
- name: Run CodeQL (no upload)
20+
uses: braintree/security-workflows/.github/workflows/codeql-android.yml@main
21+
with:
22+
upload-results: false # disable upload in fork
23+
24+
- name: Run Dependency Review (no write)
25+
uses: braintree/security-workflows/.github/workflows/dependency-review-gradle.yml@main
26+
with:
27+
report-only: true
28+
29+
- name: Upload SARIF as artifact
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: pr-sarif
33+
path: ./sarif/

.github/workflows/upload-sarif-fork.yml

Whitespace-only changes.

0 commit comments

Comments
 (0)