GitHub Expands OIDC Claims for Dependabot and Code Scanning to Improve Granular Access Control

GitHub announced updates to GitHub Actions OIDC tokens that provide more granular control over authentication between CI/CD workflows and cloud providers. The update introduces detailed repository environment attributes within OIDC claims, allowing security teams to define more restrictive access policies based on the specific context of the workflow execution. This expansion is particularly relevant for managing automated security tools like Dependabot and code scanning services.
Primary source
Open GitHub Changelog ↗This article summarizes the source. Check the original for full details and conditions.
Comparison
| Aspect | Before / Alternative | After / This |
|---|---|---|
| Claim Granularity | Broad repository-level identity for automated tools | Specific environment and sub-attribute claims |
| IAM Policy Scope | Wide permissions often required for scanning tasks | Least-privilege access restricted by environment |
| Trust Relationship | Limited validation of automated workflow context | Enhanced validation using detailed metadata |
| Security Posture | Risk of credential misuse across environments | Isolated access per specific security task |
Action Checklist
- Identify existing OIDC trust relationships in your cloud provider Look for IAM roles used by Dependabot or code scanning workflows
- Update IAM policy conditions to include the new OIDC claims Reference the updated GitHub documentation for specific claim names
- Test the new authorization logic in a non-production repository Verify that workflows still have necessary permissions after narrowing the scope
- Monitor GitHub Actions logs for OIDC token verification errors Check for failed authentication attempts during the transition period