Skip to content

Harden GitHub Actions workflows#21

Merged
bboe merged 2 commits into
mainfrom
harden-workflows
Jun 15, 2026
Merged

Harden GitHub Actions workflows#21
bboe merged 2 commits into
mainfrom
harden-workflows

Conversation

@bboe

@bboe bboe commented Jun 15, 2026

Copy link
Copy Markdown
Member

Hardens the org's shared GitHub Actions workflows, surfaced by running zizmor across all praw-dev repos.

Changes

  • Scope GITHUB_TOKEN permissions to the job level in stale_action.yml and tag_release.yml. The permissions: blocks were declared at the workflow level (granting the token to every job); they now sit on the specific job, with a deny-all permissions: {} default at the top level. Resolves zizmor's high-severity excessive-permissions findings and adds explanatory comments (undocumented-permissions). No functional change to the granted scopes.
  • Make lint.yml reusable by adding a workflow_call: trigger (alongside the existing push/pull_request), so the actionlint + zizmor jobs can be called from the other praw-dev repos. This repo continues to lint itself via the same file.

Follow-up

Once this is released, the other repos will gain a thin lint.yml caller pinned to the new release, bringing zizmor/actionlint coverage to every repo.

@bboe bboe merged commit aa63811 into main Jun 15, 2026
2 checks passed
@bboe bboe deleted the harden-workflows branch June 15, 2026 17:10
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