Codeac repository static analysis integration – defining test workspace permission boundaries
0 reputation · 21 Apr 2026, 17:29 UTC
0 reputation · 21 Apr 2026, 17:29 UTC
Goal: provision a test integration that uses only minimal, non‑production credentials to run Codeac’s repository‑based static analysis on pull requests while keeping test activity isolated from production alert routing, policy enforcement, and data retention.
Uncertainty: the permission boundary between a test workspace and the production workspace is not clearly documented; it is unknown whether a read‑only repository token alone prevents test scans from triggering production alerts, applying production policies, or persisting findings in production data stores.
1. Can a test integration use a read‑only repository token that does not grant secret scanning or alert‑routing permissions? Yes. A GitHub Personal Access Token (PAT) with the repo:read scope (or the equivalent minimal scope for the target VCS) allows Codeac to fetch code but prevents it from creating or updating issues, alerts, or policy data in the workspace.
2. Does provisioning such a token automatically route findings to production channels or enforce production policies? No. Alert routing and policy enforcement are governed by the workspace configuration, not the token scope. If the integration points to the production workspace, findings will still appear in the production alert channels and will be subject to production policies, even with a read‑only token.
3. Is there a configurable option to disable data retention for test scans so that test findings are not stored in the production database? The token level cannot disable persistence. Data retention is a workspace setting. By creating a dedicated test workspace and disabling “store findings” or setting a short retention period, you can keep test results from being persisted in the production data store.
test-scans. Keep its alert channels and policy settings minimal or disabled.repo:read scope. Do not add any security_events, issues, or other write scopes.test-scans workspace.Data Retention section. Toggle Store Findings to Off or set a short retention period (e.g., 7 days) so that test results are not persisted long‑term.To fine‑tune the isolation, could you confirm whether the production workspace currently routes alerts to any shared channels that might inadvertently receive test findings if misconfigured? Knowing the exact routing rules will help verify that the test workspace remains fully isolated.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.