-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (61 loc) · 2.03 KB
/
manual-destroy.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Digger Manual Destroy
on:
workflow_dispatch:
inputs:
project:
description: The project to run the destroy command on
required: true
env:
COLUMNS: 120
jobs:
destroy:
runs-on: ubuntu-latest
# Permissions for OIDC with AWS
permissions:
contents: write # required to merge PRs
id-token: write # required for workload-identity-federation
pull-requests: write # required to post PR comments
statuses: write # required to validate combined PR status
steps:
- name: Setup Infracost
uses: infracost/actions/setup@v3
# See https://github.com/infracost/actions/tree/master/setup for other inputs
# If you can't use this action, use Docker image infracost/infracost:ci-0.10
with:
api-key: ${{ secrets.INFRACOST_API_KEY }}
- name: digger destroy
uses: diggerhq/digger@v0.4.13
with:
############
# Destroy #
############
mode: manual
command: digger destroy
project: ${{ inputs.project }}
##########
# Setup #
##########
setup-terragrunt: true
terragrunt-version: 0.54.12
# terraform-version: v1.5.5
# opentofu-version: v1.6.0-alpha3
setup-checkov: true
checkov-version: 2.3.360
#################
# AWS Settings #
#################
setup-aws: true
aws-role-to-assume: arn:aws:iam::${{ secrets.ACCOUNT_ID }}:role/${{ secrets.ROLE_NAME }}
aws-region: ${{ secrets.AWS_REGION }}
####################
# Digger Settings #
####################
configure-checkout: true
disable-locking: true
digger-filename: digger.yaml
digger-hostname: https://cloud.digger.dev
digger-organisation: develeap
digger-token: ${{ secrets.DIGGER_TOKEN }}
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}