Skip to content

Commit c28b2da

Browse files
Fixes to AWS role assumption/credentials for Final Slack Summary.
1 parent 6bf3f09 commit c28b2da

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/release-and-deploy-bfd.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
role-session-name: get-sops-slack-webhook-${{ github.run_id }}-${{ github.run_attempt }}
6464
aws-region: ${{ inputs.aws-region }}
6565

66-
- name: Load Slack webhook
66+
- name: Load Start Slack webhook
6767
uses: cmsgov/cdap/actions/aws-params-env-action@main
6868
with:
6969
params: |
@@ -173,13 +173,26 @@ jobs:
173173
echo "failed_stage=$FAILED_STAGE" >> $GITHUB_OUTPUT
174174
echo "color=$COLOR" >> $GITHUB_OUTPUT
175175
176+
- name: Get role ARN
177+
id: get-role-arn
178+
run: |
179+
role_arn="${{ secrets.NON_PROD_ACCOUNT_GHA_ROLE_ARN }}"
180+
echo "::add-mask::$role_arn"
181+
echo "role-arn=$role_arn" >> "$GITHUB_OUTPUT"
182+
176183
- name: Assume role to AWS
177184
uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0
178185
with:
179186
role-to-assume: ${{ steps.get-role-arn.outputs.role-arn }}
180187
role-session-name: get-sops-slack-webhook-${{ github.run_id }}-${{ github.run_attempt }}
181188
aws-region: ${{ inputs.aws-region }}
182189

190+
- name: Load Final Slack webhook
191+
uses: cmsgov/cdap/actions/aws-params-env-action@main
192+
with:
193+
params: |
194+
SLACK_WEBHOOK_URL=/bfd/platform/alerting/sensitive/slack/bfd-notices/webhook
195+
183196
- name: Slack - FINAL SUMMARY
184197
uses: slackapi/slack-github-action@03ea5433c137af7c0495bc0cad1af10403fc800c # v3.0.2
185198
with:

0 commit comments

Comments
 (0)