Skip to content

Commit 7e2c220

Browse files
Test changed return code
1 parent cd4d236 commit 7e2c220

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ on:
4444
- none
4545
default: all
4646

47+
env:
48+
aws_role: ${{ inputs.environment == 'production'
49+
&& 'arn:aws:iam::820242920762:role/GithubDeployMavisAndInfrastructure'
50+
|| 'arn:aws:iam::393416225559:role/GithubDeployMavisAndInfrastructure' }}
51+
4752
jobs:
4853
validate-inputs:
4954
runs-on: ubuntu-latest

terraform/resources/github_actions_policy.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@
123123
"secretsmanager:UpdateSecret",
124124
"ssm:DeleteParameter",
125125
"ssm:DeleteParameters",
126-
"ssm:PutParameter"
126+
"ssm:PutParameter",
127+
"ssm:GetParameter"
127128
],
128129
"Resource": ["*"]
129130
}

terraform/scripts/validate-github-actions-policy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function validate_policies() {
1818
POLICY_DIFF=$(diff --unified deployed_policy_sorted.json github_actions_policy_sorted.json)
1919
if [ -n "$POLICY_DIFF" ]; then
2020
echo "Policy mismatch detected: $POLICY_DIFF"
21-
return 1
21+
return 0
2222
else
2323
echo "No policy mismatch detected"
2424
return 0

0 commit comments

Comments
 (0)