Skip to content

ci(zizmor): run the push scan on master (default branch), not the non-existent main - #1707

Merged
baylesj merged 2 commits into
open-source-parsers:masterfrom
kobihikri:fix-zizmor-branch
Jul 29, 2026
Merged

ci(zizmor): run the push scan on master (default branch), not the non-existent main#1707
baylesj merged 2 commits into
open-source-parsers:masterfrom
kobihikri:fix-zizmor-branch

Conversation

@kobihikri

Copy link
Copy Markdown
Contributor

What this fixes

.github/workflows/zizmor.yml runs the security scanner on push to main:

on:
  push:
    branches: ["main"]

But this repo's default branch is master — there is no main branch (gh api .../branches/main → 404). So the push half of the scan never fires on the default branch, and the security-events: write code-scanning baseline it would populate is never established. Only PRs are covered (via the pull_request: ["**"] trigger).

This one-line change points the push trigger at master so the scan runs on the default branch as intended.


Disclosure: I used an AI tool to help spot this; I verified the default branch and the missing main against the repo myself and take responsibility for it.

The default branch is master; there is no main branch, so the push-triggered
zizmor scan never runs on the default branch (only PRs are covered). Point it
at master so the push scan and code-scanning baseline actually populate.
@baylesj

baylesj commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Valid. Ideally we would rename master to main but not sure that's worth the breaking changes for consumer of this repository.

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 30407968484

Coverage remained the same at 89.907%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 2740
Covered Lines: 2615
Line Coverage: 95.44%
Relevant Branches: 2640
Covered Branches: 2222
Branch Coverage: 84.17%
Branches in Coverage %: Yes
Coverage Strength: 23827.04 hits per line

💛 - Coveralls

@baylesj
baylesj merged commit 60de77f into open-source-parsers:master Jul 29, 2026
26 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