diggerhq / digger

Digger is an open source IaC orchestration tool. Digger allows you to run IaC in your existing CI pipeline ⚡️
https://digger.dev
Apache License 2.0
3.14k stars 173 forks source link

Composite action should not download other actions if they are disabled #1449

Open motatoes opened 5 months ago

motatoes commented 5 months ago

can the downloads of action be limited based on the inputs received ?

workflow file has a setup-aws=true and the associated env vars. I understand the actions/* ones and the terraform ones.

Download action repository 'google-github-actions/auth@v2' (SHA:55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c)
Download action repository 'google-github-actions/setup-gcloud@v2' (SHA:98ddc00a17442e89a24bbf282954a3b65ce6d200)
Download action repository 'aws-actions/configure-aws-credentials@v4' (SHA:e3dd6a429d7300a6a4c196c26e071d42e0343502)
Download action repository 'azure/login@v2.1.0' (SHA:6b2456866fc08b011acb422a92a4aa20e2c4de32)
Download action repository 'actions/cache@v4' (SHA:0c45773b623bea8c8e75f6c82b208c3cf94ea4f9)
Download action repository 'hashicorp/setup-terraform@v3' (SHA:651471c36a6092792c552e8b1bef71e592b462d8)
Download action repository 'rhythmictech/actions-setup-tfenv@v0.1.2' (SHA:ef1296cdbec243306d3a3d31909582ca1eeb4627)
Download action repository 'autero1/action-terragrunt@v3.0.2' (SHA:aefb0a43c4f5503a91fefb307745c4d51c26ed0e)
Download action repository 'opentofu/setup-opentofu@v1.0.3' (SHA:ae80d4ecaab946d8f5ff18397fbf6d0686c6d46a)
Download action repository 'actions/setup-go@v5' (SHA:cdcb36043654635271a94b9a6d1392de5bb323a7)
Download action repository 'actions/github-script@v7' (SHA:60a0d83039c74a4aee543508d2ffcb1c3799cdea)
ben-of-codecraft commented 5 months ago

Would really like to see this feature to reduce the time of runner and reduce external dependencies coming in for more regulated environments.