Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
27bccca
support local dev
motatoes Aug 16, 2025
02fb02a
id
motatoes Aug 16, 2025
9b8bace
fix local dev mode
motatoes Aug 16, 2025
e06bac1
fix eval
motatoes Aug 16, 2025
ecdbb3d
add ls
motatoes Aug 16, 2025
0e45fbd
prints
motatoes Aug 16, 2025
27db9c5
fix dev mode
motatoes Aug 16, 2025
d651f29
fix run step
motatoes Aug 16, 2025
42df09e
fix syntqx
motatoes Aug 16, 2025
9fecf1d
fix syntax
motatoes Aug 17, 2025
64ec985
gha path
motatoes Aug 17, 2025
72819d2
action path
motatoes Aug 17, 2025
ba524d7
ax
motatoes Aug 17, 2025
dd9c551
fix
motatoes Aug 17, 2025
07558b7
hardcode command
motatoes Aug 17, 2025
08a6428
hardcode command
motatoes Aug 17, 2025
ce31ae3
hardcode command
motatoes Aug 17, 2025
46cc210
hardcode command
motatoes Aug 17, 2025
a399b0f
hardcode command
motatoes Aug 17, 2025
8cb4c90
hardcode command
motatoes Aug 17, 2025
0716504
hardcode command
motatoes Aug 17, 2025
1a7fd94
digger
motatoes Aug 17, 2025
7339962
oo
motatoes Aug 17, 2025
7353ff9
use compiled path
motatoes Aug 17, 2025
bf35ee0
ignore actions-runner
motatoes Aug 17, 2025
aa4f76e
remove accidental lines
motatoes Aug 17, 2025
afb6272
Update action.yml
motatoes Aug 19, 2025
1950a5c
added some documentation on self hosting
motatoes Aug 19, 2025
9bfa0e7
update version tag
motatoes Aug 19, 2025
ba23f02
fix action
motatoes Aug 19, 2025
ae7b454
Update docs/ce/contributing/setup-dev-environment.mdx
motatoes Aug 19, 2025
222a7da
fix docs
motatoes Aug 19, 2025
54b31f5
fix description
motatoes Aug 19, 2025
12d20ab
Update docs/ce/contributing/setup-dev-environment.mdx
motatoes Aug 19, 2025
c1ccae9
Update docs/ce/contributing/setup-dev-environment.mdx
motatoes Aug 19, 2025
c95dc82
Update docs/ce/contributing/setup-dev-environment.mdx
motatoes Aug 19, 2025
9c30477
Update action.yml
motatoes Aug 19, 2025
b51a81d
Update action.yml
motatoes Aug 19, 2025
99c3d07
add more checks
motatoes Aug 19, 2025
d68d714
bin
motatoes Aug 19, 2025
6af21b1
fix syntax
motatoes Aug 19, 2025
c2954cb
fix realpth
motatoes Aug 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
support local dev
  • Loading branch information
motatoes committed Aug 16, 2025
commit 27bcccae353e1d8357df01a458dfe6330a0d46eb
56 changes: 53 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ description: Manage terraform collaboration
author: Digger

inputs:
local-dev-mode:
description: run digger for local development?
required: false
default: false
local-dev-startup-command:
description: startup command to prepare digger
required: false
default: go build -o digger ./cmd/digger && chmod +x digger
ee:
description: use ee cli?
required: false
Expand Down Expand Up @@ -365,7 +373,8 @@ runs:

- name: Copy Digger CLI go.sum for cache key
run: |
if [[ ${{ inputs.ee }} == "true" ]]; then
if [[ ${{ inputs.local-dev-mode }} == "true" ]]; then
elif [[ ${{ inputs.ee }} == "true" ]]; then
cp "$GITHUB_ACTION_PATH/ee/cli/go.sum" "$GITHUB_WORKSPACE/.digger.go.sum"
else
cp "$GITHUB_ACTION_PATH/cli/go.sum" "$GITHUB_WORKSPACE/.digger.go.sum"
Expand Down Expand Up @@ -399,7 +408,7 @@ runs:


- name: build and run digger
if: ${{ !startsWith(github.action_ref, 'v') }}
if: ${{ !startsWith(github.action_ref, 'v') }} && ${{ inputs.local-dev-mode }} == "false"
shell: bash
env:
PLAN_UPLOAD_DESTINATION: ${{ inputs.upload-plan-destination }}
Expand Down Expand Up @@ -448,7 +457,7 @@ runs:
digger

- name: run digger
if: ${{ startsWith(github.action_ref, 'v') }}
if: ${{ startsWith(github.action_ref, 'v') }} && ${{ inputs.local-dev-mode }} == "false"
env:
actionref: ${{ github.action_ref }}
PLAN_UPLOAD_DESTINATION: ${{ inputs.upload-plan-destination }}
Expand Down Expand Up @@ -495,6 +504,47 @@ runs:
cd $GITHUB_WORKSPACE
digger

- name: run digger
if: ${{ inputs.local-dev-mode }} == "true"
env:
actionref: ${{ github.action_ref }}
PLAN_UPLOAD_DESTINATION: ${{ inputs.upload-plan-destination }}
PLAN_UPLOAD_S3_ENCRYPTION_ENABLED: ${{ inputs.upload-plan-destination-s3-encryption-enabled }}
PLAN_UPLOAD_S3_ENCRYPTION_TYPE: ${{ inputs.upload-plan-destination-s3-encryption-type }}
PLAN_UPLOAD_S3_ENCRYPTION_KMS_ID: ${{ inputs.upload-plan-destination-s3-encryption-kms-key-id }}
PLAN_UPLOAD_AZURE_STORAGE_CONTAINER_NAME: ${{ inputs.upload-plan-destination-azure-container }}
PLAN_UPLOAD_AZURE_STORAGE_ACCOUNT_NAME: ${{ inputs.upload-plan-destination-azure-storage-account }}
GOOGLE_STORAGE_LOCK_BUCKET: ${{ inputs.google-lock-bucket }}
GOOGLE_STORAGE_PLAN_ARTEFACT_BUCKET: ${{ inputs.upload-plan-destination-gcp-bucket }}
AWS_S3_BUCKET: ${{ inputs.upload-plan-destination-s3-bucket }}
ACTIVATE_VENV: ${{ inputs.setup-checkov == 'true' }}
DISABLE_LOCKING: ${{ inputs.disable-locking == 'true' }}
DIGGER_PRIVATE_KEY: ${{ inputs.digger-private-key }}
DIGGER_TOKEN: ${{ inputs.digger-token }}
DIGGER_ORGANISATION: ${{ inputs.digger-organisation }}
DIGGER_HOSTNAME: ${{ inputs.digger-hostname }}
DIGGER_FILENAME: ${{ inputs.digger-filename }}
ACCUMULATE_PLANS: ${{ inputs.post-plans-as-one-comment == 'true' }}
REPORTING_STRATEGY: ${{ inputs.reporting-strategy }}
INPUT_DIGGER_PROJECT: ${{ inputs.project }}
INPUT_DIGGER_MODE: ${{ inputs.mode }}
INPUT_DIGGER_COMMAND: ${{ inputs.command }}
INPUT_DRIFT_DETECTION_SLACK_NOTIFICATION_URL: ${{ inputs.drift-detection-slack-notification-url }}
INPUT_DRIFT_DETECTION_ADVANCED_SLACK_NOTIFICATION_URL: ${{ inputs.drift-detection-advanced-slack-notification-url }}
NO_BACKEND: ${{ inputs.no-backend }}
TG_PROVIDER_CACHE: ${{ inputs.cache-dependencies == 'true' && 1 || 0 }}
TERRAGRUNT_PROVIDER_CACHE: ${{ inputs.cache-dependencies == 'true' && 1 || 0 }}
DIGGER_RUN_SPEC: ${{inputs.digger-spec}}
id: digger
shell: bash
run:
eval ${{inputs.local-dev-startup-command}}
PATH=$PATH:$(pwd)
cd $GITHUB_WORKSPACE
digger



- uses: actions/cache/save@v4
name: cache-save
if: ${{ always() && inputs.cache-dependencies == 'true' && steps.restore_cache.outputs.cache-hit != 'true' }}
Expand Down
Loading