-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from develeap/feature/digger
Feature/digger
- Loading branch information
Showing
12 changed files
with
320 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: Digger Pull Request Workflow | ||
on: | ||
workflow_dispatch: | ||
|
@@ -25,16 +26,22 @@ jobs: | |
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 | ||
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: checkout | ||
uses: actions/checkout@v4 | ||
- name: echo env | ||
run: env | sort | ||
shell: bash | ||
- 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 run | ||
uses: diggerhq/[email protected] | ||
with: | ||
|
@@ -71,7 +78,6 @@ jobs: | |
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
# DIGGER_ACCESS_KEY_ID: ${{ secrets.DIGGER_ACCESS_KEY_ID }} | ||
# DIGGER_SECRET_ACCESS_KEY: ${{ secrets.DIGGER_SECRET_ACCESS_KEY }} | ||
|
||
########## | ||
# DEBUG # | ||
########## | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Digger Drift Detection | ||
on: | ||
workflow_dispatch: | ||
schedule: ## 12am daily. | ||
- cron: 0 0 * * * | ||
env: | ||
COLUMNS: 120 | ||
jobs: | ||
detect-drift: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: digger drift detection | ||
uses: diggerhq/[email protected] | ||
with: | ||
mode: drift-detection | ||
######### | ||
# 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 # | ||
################### | ||
disable-locking: true | ||
digger-filename: digger.yaml | ||
digger-hostname: https://cloud.digger.dev | ||
digger-organisation: develeap | ||
digger-token: ${{ secrets.DIGGER_TOKEN }} | ||
drift-detection-slack-notification-url: ${{ secrets.DRIFT_DETECTION_SLACK_NOTIFICATION }} | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.