Skip to content

ci: add secret and workflow scanning to security.yml - #45

Merged
CybotTM merged 1 commit into
mainfrom
chore/add-secret-and-workflow-scanners
Aug 2, 2026
Merged

ci: add secret and workflow scanning to security.yml#45
CybotTM merged 1 commit into
mainfrom
chore/add-secret-and-workflow-scanners

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 2, 2026

Copy link
Copy Markdown
Member

Adds the secret- and workflow-scanning jobs this repo was missing.

security.yml here predates the current skill template, so it never received
the zizmor job added in netresearch/.github#327. This brings the file to the
current template revision and adds the shared .github/zizmor.yml.

What changes

  • adds the zizmor job — static analysis of this repo's own workflows
  • drops the GITLEAKS_LICENSE secret mapping — secret scanning runs on
    betterleaks (OSS, no licence), the reusable never read the secret, and the
    org-level secret has since been deleted
  • adds top-level permissions: {} and an explicit permission set per caller
    job, so nothing relies on the repository default
  • narrows triggers from [main, master] to [main] — this repo's default
    branch is main, verified before the change
  • adds the missing composer-audit permissions block

.github/zizmor.yml exempts first-party netresearch/* reusables from the
blanket hash-pin policy (they track @main by convention); third-party actions
stay hash-pin enforced. Without it the two new caller lines flag themselves.

What deliberately does not change

This repo is not a template consumer (no .github/template.yaml) and this PR
does not make it one. Full template adoption would also overwrite release.yml,
lint.yml, harness-verify.yml and auto-merge-deps.yml — the change class
that broke every skill release org-wide on 2026-06-18 — and would add a drift
check that goes red immediately on the template files this repo does not carry.
That is a separate decision; only the two files above are touched here.

Brings security.yml to the current netresearch/.github skill-template revision
and adds the shared zizmor config.

What changes:
- adds the zizmor job (static analysis of this repo's GitHub Actions workflows)
- drops the GITLEAKS_LICENSE secret mapping: secret scanning runs on
  betterleaks, which is OSS, and the org-level secret no longer exists
- adds top-level `permissions: {}` plus an explicit permission set per caller
  job, so no job relies on the repository default
- narrows the triggers from [main, master] to [main] (this repo's default
  branch is main)
- adds the composer-audit permissions block

`.github/zizmor.yml` exempts first-party netresearch/* reusables from the
blanket hash-pin policy — they track @main by convention — while third-party
actions stay hash-pin enforced. Without it the two new caller lines flag
themselves.

This repo is not wired into the template drift check and this change does not
wire it in: only the two files above are touched.

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
Copilot AI review requested due to automatic review settings August 2, 2026 07:40
@sonarqubecloud

sonarqubecloud Bot commented Aug 2, 2026

Copy link
Copy Markdown

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates this repository’s aggregated security workflow to align with the current org template expectations, adding missing workflow static analysis and tightening permissions defaults.

Changes:

  • Added a zizmor reusable-workflow job and introduced .github/zizmor.yml to tune action pinning policy for first-party netresearch/* reusables.
  • Hardened GitHub Actions token permissions by setting top-level permissions: {} and declaring explicit per-job permissions.
  • Simplified triggers to only run on the main branch and removed the unused GITLEAKS_LICENSE secret mapping.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/zizmor.yml Adds zizmor configuration to exempt first-party netresearch/* reusables from hash-pin enforcement while keeping third-party actions pinned.
.github/workflows/security.yml Adds the zizmor scan job, removes the unused gitleaks license secret mapping, narrows triggers to main, and makes job permissions explicit with a deny-by-default baseline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/security.yml
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 1 package(s) with unknown licenses.
See the Details below.

License Issues

.github/workflows/security.yml

PackageVersionLicenseIssue Type
netresearch/.github/.github/workflows/zizmor.ymlmainNullUnknown License

OpenSSF Scorecard

PackageVersionScoreDetails
actions/netresearch/.github/.github/workflows/zizmor.yml main UnknownUnknown

Scanned Files

  • .github/workflows/security.yml

@CybotTM
CybotTM merged commit 8d39554 into main Aug 2, 2026
21 checks passed
@CybotTM
CybotTM deleted the chore/add-secret-and-workflow-scanners branch August 2, 2026 07:55
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