Skip to content

Commit 2ca21f2

Browse files
committed
[NDR-313] Provide environment to notify-slack step
1 parent aa7b905 commit 2ca21f2

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/automated-deploy-dev.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,19 @@ jobs:
222222
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
223223

224224
notify-slack:
225+
name: Notify Slack on Failure
225226
runs-on: ubuntu-latest
227+
environment: development
226228
needs: [terraform_plan_apply, deploy_lambdas, deploy_ui]
227229
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
228230
steps:
229231
- name: Configure AWS Credentials
230232
uses: aws-actions/configure-aws-credentials@v5
231233
with:
232234
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
235+
role-skip-session-tagging: true
233236
aws-region: ${{ vars.AWS_REGION }}
237+
mask-aws-account-id: true
234238

235239
- name: Get slack bot token from SSM parameter store
236240
run: |

.github/workflows/automated-sonarqube-cloud-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,19 @@ jobs:
2828
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2929

3030
notify-slack:
31+
name: Notify Slack on Failure
3132
runs-on: ubuntu-latest
33+
environment: development
3234
needs: [sonarqube_cloud]
3335
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
3436
steps:
3537
- name: Configure AWS Credentials
3638
uses: aws-actions/configure-aws-credentials@v5
3739
with:
3840
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
41+
role-skip-session-tagging: true
3942
aws-region: ${{ vars.AWS_REGION }}
43+
mask-aws-account-id: true
4044

4145
- name: Get slack bot token from SSM parameter store
4246
run: |

.github/workflows/cron-daily-health-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,19 @@ jobs:
198198
secrets: inherit
199199

200200
notify-slack:
201+
name: Notify Slack on Failure
201202
runs-on: ubuntu-latest
203+
environment: development
202204
needs: [terraform_plan_apply, run_lambda_unit_tests, run_ui_unit_tests, run_cypress_tests, publish_lambda_layers, deploy_lambdas, deploy_ui]
203205
if: failure()
204206
steps:
205207
- name: Configure AWS Credentials
206208
uses: aws-actions/configure-aws-credentials@v5
207209
with:
208210
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }}
211+
role-skip-session-tagging: true
209212
aws-region: ${{ vars.AWS_REGION }}
213+
mask-aws-account-id: true
210214

211215
- name: Get slack bot token from SSM parameter store
212216
run: |

0 commit comments

Comments
 (0)