Skip to content

Zizmor fixes#889

Open
bckohan wants to merge 8 commits intodjango-commons:mainfrom
bckohan:zizmor_fixes
Open

Zizmor fixes#889
bckohan wants to merge 8 commits intodjango-commons:mainfrom
bckohan:zizmor_fixes

Conversation

@bckohan
Copy link
Copy Markdown
Member

@bckohan bckohan commented May 2, 2026

Fix all remaining zizmor findings for CI workflows using the auditor persona.

Copilot AI review requested due to automatic review settings May 2, 2026 05:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes remaining Zizmor audit findings across GitHub Actions CI workflows by tightening permissions and improving workflow-run safety (concurrency), with an additional lockfile refresh.

Changes:

  • Added concurrency groups to multiple workflows to prevent duplicate overlapping runs.
  • Replaced broad read-all permissions with least-privilege contents: read (and narrowed job-level permissions where needed).
  • Updated update_coc.yml PR-creation approach (now uses gh + git push) and pinned one Postgres service image entry by digest.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
uv.lock Updates locked dependency versions (jedi/parso/psycopg).
.github/workflows/zizmor.yml Adds concurrency; clarifies security-events: write usage.
.github/workflows/update_coc.yml Tightens permissions, adds concurrency, switches PR creation implementation.
.github/workflows/test.yml Adds concurrency, removes actions: write, pins one Postgres matrix entry by digest.
.github/workflows/scorecard.yml Replaces read-all with least-privilege permissions + concurrency.
.github/workflows/release.yml Replaces read-all/removes extra permissions; retains required OIDC permissions.
.github/workflows/lint.yml Adds concurrency and job name.
.github/workflows/bandit.yml Adds concurrency; clarifies security-events: write usage.

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

Comment on lines +61 to +65
git checkout -B "$BRANCH"
git add CODE_OF_CONDUCT.md
git commit -m "Update Code of Conduct"
git push --force-with-lease origin "$BRANCH"

Comment on lines +66 to +70
gh pr view "$BRANCH" >/dev/null 2>&1 || gh pr create \
--base "$REF_NAME" \
--head "$BRANCH" \
--title "Update Code of Conduct" \
--body "Automated update."
Comment on lines 51 to 54
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
postgres-version: ['12', '14', 'latest']
postgres-version: ['12', '14@sha256:bbb8851608e3ff4901156bf6a4bf90735a9d44ae014c03811bfdb2f9c354b18b', 'latest']
psycopg-version: ['psycopg2', 'psycopg3']
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.

2 participants