Skip to content

[SECURITY] Fix zizmor issues + use pedantic persona#17

Merged
John McCall (lowlydba) merged 3 commits intomainfrom
16-task-increase-omf-security-checks-persona-for-zizmor
Apr 9, 2026
Merged

[SECURITY] Fix zizmor issues + use pedantic persona#17
John McCall (lowlydba) merged 3 commits intomainfrom
16-task-increase-omf-security-checks-persona-for-zizmor

Conversation

@lowlydba
Copy link
Copy Markdown
Contributor

The pedantic persona is a stricter checker, and its what we want to use across the board for public repos that are held to this workflow's checks.

Add a concurrency group to the PR checks workflow to deduplicate runs per pull request and cancel in-progress jobs for the same PR (uses workflow + PR number). Also update the zizmor action persona in the security checks workflow from `auditor` to `pedantic` to enable stricter pedantic scanning behavior.

Signed-off-by: John McCall <john@overturemaps.org>
Signed-off-by: John McCall <john@overturemaps.org>
Copilot AI review requested due to automatic review settings April 9, 2026 18:49
@lowlydba John McCall (lowlydba) linked an issue Apr 9, 2026 that may be closed by this pull request
@lowlydba John McCall (lowlydba) requested a review from a team as a code owner April 9, 2026 18:49
Signed-off-by: John McCall <john@overturemaps.org>
@lowlydba John McCall (lowlydba) merged commit eb58d62 into main Apr 9, 2026
7 checks passed
@lowlydba John McCall (lowlydba) deleted the 16-task-increase-omf-security-checks-persona-for-zizmor branch April 9, 2026 18:50
Copy link
Copy Markdown

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

Updates the repository’s GitHub Actions security/PR workflows to tighten zizmor checks and reduce redundant workflow runs, aligning with stricter security scanning expectations for public repos.

Changes:

  • Switch zizmor from the auditor persona to the stricter pedantic persona and disable Advanced Security SARIF upload in favor of PR annotations.
  • Add workflow-level concurrency to PR checks to cancel superseded runs for the same PR.
  • Rename the security checks workflow to reflect the pedantic posture.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/omf_sec_checks.yml Moves zizmor to pedantic and changes reporting mode; updates workflow display name.
.github/workflows/omf_pr_checks.yml Adds concurrency grouping/cancelation for PR-target runs.
Comments suppressed due to low confidence (1)

.github/workflows/omf_sec_checks.yml:14

  • The workflow header comments still state that zizmor runs with the 'auditor' persona and uploads SARIF to Advanced Security, but the workflow name now indicates 'pedantic'. Please update the top-of-file documentation to match the new persona/behavior so the security posture is accurately described.
name: OMF Security Checks

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

Comment on lines +45 to +46
persona: pedantic
advanced-security: false # Use GH PR Annotations instead of uploading SARIF results for better visibility in the PR
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

With advanced-security: false, zizmor will not upload SARIF, but the job still requests security-events: write permissions. For least privilege, either drop security-events: write (and any related SARIF-upload wording) or re-enable Advanced Security upload if that's the intent.

Copilot uses AI. Check for mistakes.
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.

[TASK] Increase OMF Security Checks' persona for zizmor

2 participants