mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-09-14 12:18:50 +00:00
fix(security): narrow OIDC trust to main only (F2)
Drop refs/heads/dev and pull_request from the sub allowlist on github-deploy-miti99bot trust policy. Only pushes to main can now assume the deploy role. dev was dormant (ci.yml has only contents:read; deploy.yml triggers on push:main only). pull_request was dormant too (no workflow has id-token:write under PR trigger). This closes the latent F2 path. Plan: plans/260518-1019-iam-least-privilege/phase-01-narrow-oidc-trust-f2.md Audit: plans/reports/code-reviewer-260518-1019-security-aws-infra.md
This commit is contained in:
@@ -13,9 +13,7 @@
|
||||
},
|
||||
"StringLike": {
|
||||
"token.actions.githubusercontent.com:sub": [
|
||||
"repo:tiennm99/miti99bot:ref:refs/heads/main",
|
||||
"repo:tiennm99/miti99bot:ref:refs/heads/dev",
|
||||
"repo:tiennm99/miti99bot:pull_request"
|
||||
"repo:tiennm99/miti99bot:ref:refs/heads/main"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user