Skip to content

chore: secure CI - #155

Draft
henryiii wants to merge 1 commit into
mainfrom
chore/secure-ci
Draft

chore: secure CI#155
henryiii wants to merge 1 commit into
mainfrom
chore/secure-ci

Conversation

@henryiii

Copy link
Copy Markdown
Contributor

Prompted by pypa/hatch#2292.

🤖 AI text below 🤖

  • Pin every action and reusable workflow to a full commit SHA with a version comment.
  • Add permissions: {} at workflow level and give each job only the permissions it uses, with comments.
  • Add persist-credentials: false to all checkout steps.
  • Add concurrency groups to the ack, push, deploy, and Format workflows.
  • Give the deploy and dist jobs names.
  • Change dependabot to monthly grouped updates with a 7-day cooldown, and add the pre-commit ecosystem.
  • Add the zizmor pre-commit hook and freeze all hooks to a SHA.
  • Add exclude-newer = "7 days" to [tool.uv].
  • Add .github/zizmor.yml with three documented ignores: dangerous-triggers and secrets-inherit for the shared ansible workflow, and use-trusted-publishing for the PyPI upload.

Major version changes: hynek/build-and-inspect-python-package v2 to v3.0.1 (it stops moving the major tag, so it needs a SHA pin), and the ruff hook v0.15.17 to v0.16.1.

Trusted publishing is a better option than the PyPI password, but it needs configuration on PyPI. Please do this in a different pull request.

Pin all actions to SHA, restrict permissions, add concurrency groups, and
add cooldowns for dependabot, pre-commit, and uv.

Assisted-by: ClaudeCode:claude-opus-5
@github-actions github-actions Bot added the chore label Aug 13, 2026
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.

1 participant