Skip to content

Limit CI token to read-only and fix the scan_ruby check - #56

Merged
royalpriest merged 1 commit into
mainfrom
fix/workflow-permissions
Nov 21, 2026
Merged

royalpriest merged 1 commit into
mainfrom
fix/workflow-permissions

Conversation

@royalpriest

@royalpriest royalpriest commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

What changed

Supersedes #55, which has the same workflow change but not the Brakeman update, so its scan_ruby check fails.

Checks

  • bin/rails test: 136 runs, 0 failures
  • bin/rubocop: no offenses
  • bin/brakeman --no-pager: no warnings
  • bin/bundler-audit: no vulnerabilities

Set a top-level permissions block (contents: read) in ci.yml so every job
runs with a read-only GITHUB_TOKEN. This resolves the five CodeQL
"Workflow does not contain permissions" alerts.

Update Brakeman to 8.1.1. bin/brakeman runs with --ensure-latest, so the
scan_ruby job failed as soon as 8.1.1 was released.
@royalpriest royalpriest self-assigned this Nov 21, 2026
@royalpriest
royalpriest merged commit 673eae9 into main Nov 21, 2026
10 checks passed
@royalpriest
royalpriest deleted the fix/workflow-permissions branch November 21, 2026 00:25
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