-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added condition to clear checkov error CKV_AWS_358 #228
Conversation
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, could you add a bit of detail into the PR as to what the original error was and how this is being resolved please? Also I think you can remove the comment as it doesn't really add anything.
Co-authored-by: David Elliott <[email protected]>
|
…rmitted in github_repositories variable
|
d3383fa
to
3311ef1
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ve checked the current repos in all the env files and none of them belongs to an org outside of the ministryofjustice, so this should be sufficient for now (but may need updating in the future
One error in the checkov report to be cleared. The change here should clear the issue. The actual checkov error is CKV_aws_358: "Ensure GitHub Actions OIDC trust policies only allows actions from a specific known organization"
This PR includes a validation for the
github_repositories
variable to give us a combination of flexibility in accepted GitHub Organizations, and control over which Orgs we all. At present, we're only allowingministryofjustice
but the conditional validation can be expanded as needed.