From 4aa26c463ac271a5e00d5ab66866cfddfd5b511b Mon Sep 17 00:00:00 2001 From: Sourabh Mehta <73165318+soumeh01@users.noreply.github.com> Date: Mon, 15 Apr 2024 09:11:33 +0200 Subject: [PATCH] Inherit token on workflow_call The coverage jobs were encountering failures due to inaccessible secrets when invoked from other workflows during the nightly build. This modification improves the handling of secrets by allowing them to be inherited from the calling workflows. https://docs.github.com/en/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow --- .github/workflows/nightly.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 7f0848352..760b7c1cc 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -9,18 +9,23 @@ jobs: buildmgr: if: github.repository == 'Open-CMSIS-Pack/devtools' uses: Open-CMSIS-Pack/devtools/.github/workflows/buildmgr.yml@main + secrets: inherit packchk: needs: [buildmgr] uses: Open-CMSIS-Pack/devtools/.github/workflows/packchk.yml@main + secrets: inherit packgen: needs: [packchk] uses: Open-CMSIS-Pack/devtools/.github/workflows/packgen.yml@main + secrets: inherit projmgr: needs: [packgen] uses: Open-CMSIS-Pack/devtools/.github/workflows/projmgr.yml@main + secrets: inherit svdconv: needs: [projmgr] uses: Open-CMSIS-Pack/devtools/.github/workflows/svdconv.yml@main + secrets: inherit test_libs: needs: [svdconv] uses: Open-CMSIS-Pack/devtools/.github/workflows/test_libs.yml@main