File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 97
97
name : Terraform plan
98
98
runs-on : ubuntu-latest
99
99
needs : [validate-permissions, update-permissions]
100
- if : needs.update-permissions.result == 'success' || needs.validate-permissions.outputs.policy-mismatch != 'true'
100
+ if : always() && needs.validate-permissions.outputs.policy-mismatch != 'true'
101
101
permissions :
102
102
id-token : write
103
103
steps :
Original file line number Diff line number Diff line change 8
8
POLICY_ARN=$1
9
9
POLICY_FILE=$2
10
10
11
+ echo " policy_mismatch=false" >> " $GITHUB_OUTPUT "
12
+
11
13
VERSION_ID=$( aws iam get-policy --policy-arn " $POLICY_ARN " --query ' Policy.DefaultVersionId' --output text)
12
14
aws iam get-policy-version --policy-arn " $POLICY_ARN " --version-id " $VERSION_ID " --query ' PolicyVersion.Document' --output json > deployed_policy.json
13
15
echo " fetched deployed policy: $( cat deployed_policy.json) "
You can’t perform that action at this time.
0 commit comments