From d130e12b65e2444d765621a12ec8cf8bd2b72bc9 Mon Sep 17 00:00:00 2001 From: "Anders K. Pettersen" Date: Tue, 23 Jul 2024 15:21:20 +0200 Subject: [PATCH] feat!: Add secrets input to workflow call (#79) 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 --- .github/workflows/reusable-terraform-plan-apply.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/reusable-terraform-plan-apply.yml b/.github/workflows/reusable-terraform-plan-apply.yml index 80deee1..c50b9c3 100644 --- a/.github/workflows/reusable-terraform-plan-apply.yml +++ b/.github/workflows/reusable-terraform-plan-apply.yml @@ -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: >