Skip to content

Add zizmor to checks.yaml; Address all zizmor --pedantic complaints#46

Merged
jzimbel-mbta merged 17 commits into
mainfrom
jz-add-zizmor
Jun 22, 2026
Merged

Add zizmor to checks.yaml; Address all zizmor --pedantic complaints#46
jzimbel-mbta merged 17 commits into
mainfrom
jz-add-zizmor

Conversation

@jzimbel-mbta

Copy link
Copy Markdown
Member

Part of the effort to add zizmor to all our projects for improved GitHub Actions security.

Specifying permissions on the reusable workflows defined in this project saves us the effort of specifying those permissions repeatedly in every place where they are used.

Testing:
I'm working on similar changes in rtr right now, so I'll check that these changes are safe by temporarily pointing rtr's usages of the asana and deploy-ecs workflows at the head of this branch.

@jzimbel-mbta jzimbel-mbta requested a review from a team as a code owner June 22, 2026 16:39
@jzimbel-mbta jzimbel-mbta requested a review from skyqrose June 22, 2026 16:39
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Comment thread .github/workflows/checks.yaml Outdated
Comment thread .github/workflows/checks.yaml Outdated
Comment thread .github/workflows/checks.yaml Outdated
@skyqrose

Copy link
Copy Markdown
Member

^ I've never seen that GitHub bot comment before. I wonder if it's because of the advanced-security setting defaulting to true?

@jzimbel-mbta

Copy link
Copy Markdown
Member Author

^ I've never seen that GitHub bot comment before. I wonder if it's because of the advanced-security setting defaulting to true?

Yeah, that would be my guess. My bad for missing that instruction from the docs.

Given this part:

or this pull request contains the workflow file for the Code Scanning tool.

it sounds like whatever I "staged" to be switched on will be un-staged when I change this setting in my next commit.

@jzimbel-mbta

Copy link
Copy Markdown
Member Author

Thanks for the approval. I'm going to test the updated deploy-ecs workflow out on an rtr dev environment before merging this.

@jzimbel-mbta jzimbel-mbta merged commit c76e5cc into main Jun 22, 2026
4 checks passed
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.

3 participants