Skip to content

Commit

Permalink
feat!: Add secrets input to workflow call (#79)
Browse files Browse the repository at this point in the history
This is a breaking change.

You might encounter this error message if you don't change your caller workflows:

```
This job failed
Secret AWS_ROLE_ARN is required, but not provided while calling.
```

In caller workflows, you need to make this change:

```diff
-    uses: oslokommune/reusable-terraform-plan-apply/.github/workflows/reusable-terraform-plan-apply.yml@main
-    secrets: inherit
+    uses: oslokommune/reusable-terraform-plan-apply/.github/workflows/reusable-terraform-plan-apply.yml@main
+    secrets:
+      AGE_PUBLIC_KEY: ${{ secrets.AGE_PUBLIC_KEY }}
+      AGE_SECRET_KEY: ${{ secrets.AGE_SECRET_KEY }}
+      AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
+      GOLDEN_PATH_IAC_PRIVATE_DEPLOY_KEY: ${{ secrets.GOLDEN_PATH_IAC_PRIVATE_DEPLOY_KEY }}
```

Co-authored-by: Anders K. Pettersen <staticaland@users.noreply.github.com>
  • Loading branch information
staticaland and staticaland authored Jul 23, 2024
1 parent fc4e8f0 commit d130e12
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/reusable-terraform-plan-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ permissions:
on:

workflow_call:
secrets:
AWS_ROLE_ARN:
required: true
GOLDEN_PATH_IAC_PRIVATE_DEPLOY_KEY:
required: true
AGE_PUBLIC_KEY:
required: true
AGE_SECRET_KEY:
required: true
inputs:
environment:
description: >
Expand Down

0 comments on commit d130e12

Please # to comment.