Skip to content

ci: add zizmor config exempting first-party reusables - #766

Merged
CybotTM merged 3 commits into
mainfrom
chore/add-zizmor-config
Aug 1, 2026
Merged

ci: add zizmor config exempting first-party reusables#766
CybotTM merged 3 commits into
mainfrom
chore/add-zizmor-config

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 1, 2026

Copy link
Copy Markdown
Member

Syncs the template changes from netresearch/.github#330.

Secret scanning runs on betterleaks, which is OSS and needs no license.
The shared reusable declares GITLEAKS_LICENSE only for backwards
compatibility and never reads it, so forwarding a repo secret into it was
dead plumbing that widened the secret exposure surface for no benefit.

This file is kept byte-identical to the template, so the diff carries two
template edits:

  1. the removed secrets: GITLEAKS_LICENSE mapping
  2. a corrected header comment — it previously described the job set as
    gitleaks + dependency review + composer audit and never mentioned the
    zizmor scan added in [Upstream #139] Email global vs per job configuration #327

The file was byte-identical to the previous template revision beforehand, so
no repo-specific drift was touched. Required to keep check-template-drift
green.

Note on naming: the job and the reusable keep the gitleaks name for
backwards compatibility with existing callers; the scan itself is betterleaks.

zizmor's default unpinned-uses policy is blanket hash-pin, which flags every
netresearch/* reusable referenced @main — including the scanner jobs added in
this PR. First-party reusables track @main by policy so fixes propagate to all
consumers, so they are exempted to ref-pin here.

Third-party actions remain hash-pin enforced. Byte-identical to the shared
template config (netresearch/.github#329).

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
Copilot AI review requested due to automatic review settings August 1, 2026 09:52
@github-actions github-actions Bot added the ci label Aug 1, 2026
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

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/zizmor.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/zizmor.yml

@codecov

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.70%. Comparing base (e19bb85) to head (d9d2c7b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #766      +/-   ##
==========================================
+ Coverage   87.69%   87.70%   +0.01%     
==========================================
  Files          90       90              
  Lines       12057    12057              
==========================================
+ Hits        10573    10575       +2     
+ Misses       1194     1193       -1     
+ Partials      290      289       -1     
Flag Coverage Δ
integration 87.69% <ø> (ø)
unittests 85.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Adds a repository-local zizmor configuration to align GitHub Actions auditing with Netresearch’s pinning policy: first-party netresearch/* reusable workflows may track @main (ref-pin), while all other actions remain required to use full commit SHA pins (hash-pin). This supports keeping the template drift check green for this template consumer.

Changes:

  • Add .github/zizmor.yml to configure zizmor’s unpinned-uses rule policies.
  • Exempt netresearch/* from SHA pinning while keeping third-party actions SHA-pinned.

github-actions[bot]
github-actions Bot previously approved these changes Aug 1, 2026

@github-actions github-actions Bot 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.

Automated approval for maintainer PR

All automated quality gates passed. See SECURITY_CONTROLS.md for compensating controls.

Syncs the standalone zizmor caller workflow that the go templates ship
(netresearch/.github#327). The file was missing in this repo, which is what
the template drift check reports.

Report-only: the reusable runs in SARIF mode and uploads to code scanning;
it never fails CI. Minimal permissions (contents: read + security-events: write).

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
github-actions[bot]
github-actions Bot previously approved these changes Aug 1, 2026

@github-actions github-actions Bot 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.

Automated approval for maintainer PR

All automated quality gates passed. See SECURITY_CONTROLS.md for compensating controls.

@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 1, 2026
@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 1, 2026
@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 1, 2026
@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 1, 2026
@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 1, 2026
@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 1, 2026
@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 1, 2026
@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 1, 2026
@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 1, 2026
@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 1, 2026
@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 1, 2026
@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
Syncs netresearch/.github#330. Secret scanning runs on betterleaks, which is
OSS and needs no license; the reusable declares GITLEAKS_LICENSE only for
backwards compatibility and never reads it. Passing the secret was dead
plumbing that widened the exposure surface for no benefit.

Keeps this file byte-identical to the template, which the drift check enforces.

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
@CybotTM
CybotTM removed this pull request from the merge queue due to a manual request Aug 1, 2026
@sonarqubecloud

sonarqubecloud Bot commented Aug 1, 2026

Copy link
Copy Markdown

@github-actions github-actions Bot 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.

Automated approval for maintainer PR

All automated quality gates passed. See SECURITY_CONTROLS.md for compensating controls.

@CybotTM
CybotTM added this pull request to the merge queue Aug 1, 2026
Merged via the queue into main with commit e2ed904 Aug 1, 2026
28 checks passed
@CybotTM
CybotTM deleted the chore/add-zizmor-config branch August 1, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants