defenseunicorns / delivery-aws-iac

Apache License 2.0
14 stars 5 forks source link

ci: fix permissions issues and move release-please to reusable workflow #365

Closed zack-is-cool closed 12 months ago

zack-is-cool commented 12 months ago

Permissions need to be set at caller workflow. Reusable (called) workflows may not have more permissions than the caller workflow. If you set any permissions, any permissions not set are set to none, so we need to keep that in mind.

We may want to look at adding permissions at the job level, I'm not sure how that interaction works with reusable workflows, but it is a bit more annoying to set it in multiple places.

Specifically the GITHUB_TOKEN for our IaC tests needs id-token: write for OIDC AWS auth things and that needs to be set at the top level workflow if set at the workflow level