Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/brin-security-scanner-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# DO NOT MERGE: intentionally unsafe workflow used to test the Brin PR scanner.
name: Brin Security Scanner Test

on:
pull_request_target:
types: [opened, synchronize]

permissions: write-all

jobs:
unsafe-test-fixture:
runs-on: ubuntu-latest
steps:
- name: Checkout untrusted PR code
uses: actions/checkout@main
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Interpolate untrusted PR title

Check failure

Code scanning / CodeQL

Checkout of untrusted code in trusted context High

Potential execution of untrusted code on a privileged workflow (
pull_request_target
)
Comment on lines +14 to +19
run: echo "PR title: ${{ github.event.pull_request.title }}"
Loading