diff --git a/.github/sts/slack-config.sts.yaml b/.github/sts/slack-config.sts.yaml index 0e9f36b..caf2faf 100644 --- a/.github/sts/slack-config.sts.yaml +++ b/.github/sts/slack-config.sts.yaml @@ -4,14 +4,17 @@ # (rotation invalidates the previous refresh token, so the new one must be # stored immediately). Replaces the SLACK_GH_TOKEN fine-grained PAT. # -# refs/heads/main covers the production deploy and the scheduled preview sweep; -# pull_request covers preview deploy/destroy runs. Jobs that reference a GitHub -# environment present it as their OIDC subject instead of the ref/event form, -# so environment:preview covers the jobs running in the preview environment. +# Jobs that reference a GitHub environment present it as their OIDC subject +# instead of the ref/event form. All jobs that rotate the token run in an +# environment: environment:production covers the production Slack app update, +# and environment:preview covers the preview deploy/destroy/sweep jobs. The +# refs/heads/main and pull_request subjects cover rotation from any future job +# that runs without an environment. subject: - repo:tempoxyz@211589300/tip.bot@1232143975:ref:refs/heads/main - repo:tempoxyz@211589300/tip.bot@1232143975:pull_request - repo:tempoxyz@211589300/tip.bot@1232143975:environment:preview + - repo:tempoxyz@211589300/tip.bot@1232143975:environment:production permissions: secrets: write