-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
42 lines (35 loc) · 1.18 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 'aiven_terraform_governance_compliance_check'
description: 'GitHub Action to perform governance checks on aiven terraform resources for a generated plan'
author: 'Aiven'
inputs:
requester:
description: 'The github username that created the pull request (data.aiven_external_identity.external_user_id)'
required: true
approvers:
description: 'The github usernames (csv) that have approved the pull request (data.aiven_external_identity.external_user_id)'
required: true
plan:
description: 'The path to a terraform plan.json file'
required: true
outputs:
result:
description: "the compliance result"
value: ${{ steps.check.outputs.result }}
runs:
using: "composite"
steps:
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ${{ github.action_path }}/go.mod
- name: Check Aiven Terraform Governance Compliance
id: check
run: |
RESULT=$(
${{ github.action_path }}/build/checker -plan=${{ inputs.plan }} -requester=${{ inputs.requester }} -approvers=${{ inputs.approvers }}
)
echo "result=$RESULT" >> "$GITHUB_OUTPUT"
shell: bash
branding:
icon: 'shield'
color: 'orange'