Skip to content

[do not merge] testing zizmor and codeql checks #15794

Open
kevinjqliu wants to merge 3 commits intoapache:mainfrom
kevinjqliu:kevinjqliu/test-zizmor-and-codeql
Open

[do not merge] testing zizmor and codeql checks #15794
kevinjqliu wants to merge 3 commits intoapache:mainfrom
kevinjqliu:kevinjqliu/test-zizmor-and-codeql

Conversation

@kevinjqliu
Copy link
Copy Markdown
Contributor

codeql check #15348
zizmor check #15793

@github-actions github-actions bot added the INFRA label Mar 27, 2026

- name: Script injection via pr title
run: |
echo "Processing PR: ${{ github.event.pull_request.title }}"

Check failure

Code scanning / CodeQL

Code injection Critical

Potential code injection in
${ github.event.pull_request.title }
, which may be controlled by an external user (
pull_request_target
).

- name: Script injection via pr body
run: |
echo "${{ github.event.pull_request.body }}"

Check failure

Code scanning / CodeQL

Code injection Critical

Potential code injection in
${ github.event.pull_request.body }
, which may be controlled by an external user (
pull_request_target
).
Comment on lines +51 to +53
- name: Run untrusted code from PR
run: |
bash ./scripts/greet.sh

Check failure

Code scanning / CodeQL

Checkout of untrusted code in a privileged context Critical

Potential execution of untrusted code on a privileged workflow (
pull_request_target
)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good bot!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! so even though this workflow is marked with on: pull_request_target # zizmor: ignore[dangerous-triggers], CodeQL still catches potential vulnerabilities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant