Skip to content

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

Open
kobihikri wants to merge 1 commit into
open-source-parsers:masterfrom
kobihikri:fix-zizmor-branch
Open

ci(zizmor): run the push scan on master (default branch), not the non-existent main#1707
kobihikri wants to merge 1 commit into
open-source-parsers:masterfrom
kobihikri:fix-zizmor-branch

Conversation

@kobihikri

Copy link
Copy Markdown

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.
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.

1 participant