Skip to content

Fix code scanning issues: CodeQL setup and workflow permissions#32

Merged
dduugg merged 1 commit into
mainfrom
fix-code-scanning-issues
Jul 25, 2026
Merged

Fix code scanning issues: CodeQL setup and workflow permissions#32
dduugg merged 1 commit into
mainfrom
fix-code-scanning-issues

Conversation

@dduugg

@dduugg dduugg commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The Gusto enterprise-level security config (Gusto Default Advanced Security, enforced) disables code scanning default (automatic) setup org/enterprise-wide, which has left this repo's default CodeQL setup stuck erroring since the policy took effect. Adds .github/workflows/codeql.yml, an explicit advanced setup workflow that isn't subject to that policy — same fix as rubyatscale/query_packwerk#37.
  • Resolves the actions/missing-workflow-permissions code scanning finding on ci.yml: the call-workflow-from-shared-config job (and any other jobs in this file) had no explicit permissions block, so it defaulted to the repository's token permissions. Adds a root-level permissions: contents: read, since the shared-config reusable workflow only checks out code and posts to a Slack webhook — same fix as rubyatscale/query_packwerk#38.

Test plan

  • Confirm the CI workflow still passes after merge
  • Confirm the CodeQL workflow runs successfully on main
  • Confirm the code scanning status page no longer reports configuration errors

- Adds an advanced-setup CodeQL workflow. The Gusto enterprise security config disables code scanning default (automatic) setup org-wide, which has left default CodeQL setup stuck erroring for this repo. An explicit workflow switches to advanced setup, which isn't subject to that policy.
- Adds an explicit permissions: contents: read to ci.yml to resolve the actions/missing-workflow-permissions code scanning finding; the shared-config reusable CI workflow only checks out code and posts to a Slack webhook, neither of which needs write access.
@dduugg
dduugg requested a review from a team as a code owner July 24, 2026 19:56
@github-project-automation github-project-automation Bot moved this to Triage in Modularity Jul 24, 2026
@dduugg
dduugg merged commit 7252dff into main Jul 25, 2026
9 checks passed
@dduugg
dduugg deleted the fix-code-scanning-issues branch July 25, 2026 05:47
@github-project-automation github-project-automation Bot moved this from Triage to Done in Modularity Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant