Skip to content

test: zizmor combined verification - #9054

Draft
quirogas wants to merge 14 commits into
googleapis:mainfrom
quirogas:test/zizmor-combined-verification
Draft

test: zizmor combined verification#9054
quirogas wants to merge 14 commits into
googleapis:mainfrom
quirogas:test/zizmor-combined-verification

Conversation

@quirogas

Copy link
Copy Markdown
Contributor

No description provided.

westarle and others added 8 commits July 30, 2026 09:50
- Add .github/workflows/zizmor.yml running zizmor-action in pedantic persona
- Add concurrency throttling blocks to all workflow files
- Add explicit job and workflow names to anonymous definitions
- Document write permissions with explanatory inline comments
- Pin container images by sha256 digest
- Scope pull-requests: write permission in assign-reviewers.yml to job level
- Switch assign-reviewers.yml trigger to pull_request
Modifications to librarian configuration and generator scripts require downstream generated code to be kept in sync with upstream changes.

Adds .github/workflows/generation_check.yaml to run on pull requests that modify librarian.yaml, .readme-partials.yaml, librarian.js, or librarian.ts, as well as on main branch pushes and workflow_dispatch events. The workflow sets up Node.js 22, pins googleapis/librarian to an immutable commit SHA (passing zizmor security checks), installs Librarian dependencies, executes librarian generate --all across configured packages, and asserts zero uncommitted git diffs exist.

Fixes googleapis/librarian#5352
Updates googleapis/librarian action SHA pin to 35997441eafc2b02716804f9baba1e3f04f8a44f corresponding to tag v0.31.1, aligning the action version with the version specified in librarian.yaml.
…workflow model

Adds .github/workflows/librarian_tidy.yml to verify that librarian.yaml is tidy on pull requests. Updates .github/workflows/generation_check.yaml to match the established google-cloud-go workflow pattern, using googleapis/librarian@main and adding automated main branch failure reporting via create-issue-on-failure.
Pins googleapis/librarian and create-issue-on-failure actions to commit SHA a02c28273b3c9ddb33bbe5849a44b6a678d28404 (v0.31.1) across generation_check.yaml and librarian_tidy.yml.

This satisfies Alphabet's mandatory Zizmor security scanning policy requiring immutable commit SHA references for third-party actions, while allowing librarian.yaml to dynamically control CLI binary execution.
…for Zizmor

Suppresses excessive-permissions audit finding on job-level issues:write permission in generation_check.yaml. Updates concurrency grouping expressions across generation_check.yaml and librarian_tidy.yml to use pull_request.number to resolve Exit Code 13 findings.
… checks

Adds inline explanatory comments to contents: read and issues: write permission entries under jobs.regeneration in generation_check.yaml. This resolves Zizmor's undocumented-permissions audit finding.
@quirogas quirogas self-assigned this Jul 31, 2026
@quirogas quirogas added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 31, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

Comment thread .github/workflows/generation_check.yaml Fixed
Comment thread .github/workflows/generation_check.yaml Fixed
Comment thread .github/workflows/librarian_tidy.yml Fixed
Comment thread .github/workflows/generation_check.yaml Fixed
Comment thread .github/workflows/generation_check.yaml Fixed
Comment thread .github/workflows/librarian_tidy.yml Fixed
quirogas added 3 commits July 31, 2026 18:18
Updates version comments for actions/checkout (v4.2.2) and dorny/paths-filter (v3.0.2) across generation_check.yaml and librarian_tidy.yml to resolve Zizmor ref-confusion findings.
Updates version comments for actions/checkout (v4.2.2), actions/setup-node (v4.4.0), and pnpm/action-setup (v4.1.0) across workflow files to resolve Zizmor ref-confusion findings.
Comment thread .github/workflows/zizmor.yml Fixed
Comment thread .github/workflows/update-api-list.yaml Fixed
Comment thread .github/workflows/update-api-list.yaml Fixed
Comment thread .github/workflows/system-tests-against-emulator.yaml Fixed
Comment thread .github/workflows/system-tests-against-emulator.yaml Fixed
Comment thread .github/workflows/generation_check.yaml Fixed
Comment thread .github/workflows/generation_check.yaml Fixed
Comment thread .github/workflows/discovery.yaml Fixed
Comment thread .github/workflows/discovery.yaml Fixed
Comment thread .github/workflows/discovery.yaml Fixed
quirogas added 3 commits July 31, 2026 19:02
…n comments

Resolves Zizmor ref-version-mismatch and stale-action-refs warnings by aligning actions/checkout to # v6.0.3, dorny/paths-filter to # v4.0.1, and pinning googleapis/librarian to commit 35997441eafc2b02716804f9baba1e3f04f8a44f corresponding to tag v0.31.1.
…est branch

Restores authentic repository release tag annotations (v6.0.3, v6.4.0, v5.0.1, and v0.31.1) across combined workflow files to prevent ref-version-mismatch errors under Zizmor v1.25.2 online scans.
@quirogas
quirogas deployed to presubmit August 1, 2026 02:06 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants