Skip to content

ci: remediate zizmor hook findings - #1596

Closed
jorgepiloto wants to merge 13 commits into
mainfrom
ci/zizmor-hook
Closed

jorgepiloto wants to merge 13 commits into
mainfrom
ci/zizmor-hook

Conversation

@jorgepiloto

Copy link
Copy Markdown
Member

This PR ports the zizmor remediation changes into ci/zizmor-hook.

It updates workflows and composite actions that zizmor flagged by replacing superfluous actions with gh CLI steps and removing template-injection patterns in shell command construction, while preserving the existing workflow behavior.

@github-actions github-actions Bot added ci Pipelines maintenance related code-style and removed code-style labels Oct 6, 2026
@jorgepiloto

Copy link
Copy Markdown
Member Author

This must be merged before #906

@jorgepiloto
jorgepiloto marked this pull request as ready for review October 6, 2026 08:22
@jorgepiloto
jorgepiloto requested a review from a team as a code owner October 6, 2026 08:22
@jorgepiloto

Copy link
Copy Markdown
Member Author

Related with #787

@jorgepiloto jorgepiloto added this to the ansys/[email protected] milestone Oct 6, 2026

@SMoraisAnsys SMoraisAnsys left a comment

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.

LGTM Thanks for those changes @jorgepiloto ! Could you double check that everything is working with a dummy repo before merging ?
Also, could you update the dependabot configuration file to drop the removed actions ?

Comment thread .pre-commit-config.yaml Resolved
Comment thread .github/workflows/ci_cd_release.yml Resolved
@jorgepiloto

jorgepiloto commented Oct 12, 2026 •

Copy link
Copy Markdown
Member Author

I made a release in lamberthub for testing this. It succeeded.

@moe-ad moe-ad added the deploy-pr-doc Deploy pull request documentation label Oct 12, 2026
@moe-ad

moe-ad commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

I added the deploy-pr-doc label just now, to test that PR commenting works correctly.

@jorgepiloto I wonder if it is worth splitting the pull request into 2:

  • One for the removal of the third party actions
  • One for the zizmor related changes

I am suggesting that because the current PR title doesn't capture the full scope of the work that has been done in this PR, so having them separate might be good for traceability. This situation is a good candidate for stacked PRs.

@github-actions

Copy link
Copy Markdown

The documentation for this pull request will be available at https://actions.docs.ansys.com/pull/1596. Please allow some time for the documentation to be deployed.

@SMoraisAnsys SMoraisAnsys left a comment

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.

LGTM, nice findidng with the SKIP env var, I assumed it was a forgotten env variable xD
Here is a tiny addition for future readers that might struggle to understand the origin of this env. variable.
Feel free to discard if you think it's too much.

Comment thread .github/workflows/ci_cd_pr.yml Resolved
Comment thread .github/workflows/ci_cd_release.yml Resolved
@jorgepiloto

Copy link
Copy Markdown
Member Author

Superseded by a stack of smaller PRs, as suggested in review: #1599 (remove third-party actions) and the zizmor hook PR stacked on top.

@RobPasMue
RobPasMue deleted the ci/zizmor-hook branch November 24, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Pipelines maintenance related deploy-pr-doc Deploy pull request documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants