Skip to content

chore: start locking down workflows - #16622

Merged
Raymond Zhao (rzhao271) merged 2 commits into
mainfrom
rzhao271/workflows
May 9, 2025
Merged

Raymond Zhao (rzhao271) merged 2 commits into
mainfrom
rzhao271/workflows

Conversation

@rzhao271

Copy link
Copy Markdown
Contributor

Applies some zizmor audit suggestions to the workflow.

@rzhao271 Raymond Zhao (rzhao271) added this to the May 2025 milestone May 9, 2025
@rzhao271 Raymond Zhao (rzhao271) changed the title chore: lock down workflows chore: start locking down workflows May 9, 2025
VSC_JUPYTER_FORCE_LOGGING: 1
VSC_JUPYTER_CI_TEST_VSC_CHANNEL: 'insiders'
uses: GabrielBB/xvfb-action@v1.7
uses: GabrielBB/xvfb-action@b706e4e27b14669b486812790492dc50ca16b465 # v1.7

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

where do these values come from?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

or rather, how did you collect them to be inserted here?

@rzhao271 Raymond Zhao (rzhao271) May 9, 2025

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.

I did it manually by looking up the repositories corresponding to the actions and then finding suitable commit SHAs, e.g. https://github.com/GabrielBB/xvfb-action/releases -> GabrielBB/xvfb-action@b706e4e.

zizmor does not trust actions outside of actions/* and encourages pinning to specific commit SHAs instead of version tags.

@amunger

Copy link
Copy Markdown
Contributor

unrelated test error

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