Skip to content

Run an autofix pass on github workflows using zizmor#2233

Open
dmah42 wants to merge 1 commit into
mainfrom
scan_zizmor
Open

Run an autofix pass on github workflows using zizmor#2233
dmah42 wants to merge 1 commit into
mainfrom
scan_zizmor

Conversation

@dmah42

@dmah42 dmah42 commented Jun 25, 2026

Copy link
Copy Markdown
Member

Zizmor is going to be automatically installed in this repo shortly. To avoid any churn, this is a pre-run to fix up any potential vulnerabilities identified by the tool.

Zizmor is going to be automatically installed in this repo shortly. To
avoid any churn, this is a pre-run to fix up any potential
vulnerabilities identified by the tool.
- name: configure cmake
run: >
cmake -S . -B ${{ runner.workspace }}/_build/
cmake -S . -B $env:RUNNER_WORKSPACE/_build/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is literally the first time i'm seeing this syntax.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't suppose there is a way to make this be ${RUNNER_WORKSPACE}?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

apparently this is exactly the risk. the way the action works is that it does a literal text replacement, opening the door to potential malicious commands (i think it's unlikely but hey).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

oh and this is using the powershell syntax, basically. if it was linux it would be $RUNNER_WORKSPACE

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants