Skip to content

Commit

Permalink
ci: inherit secrets to pass Codecov token to "test" workflow call
Browse files Browse the repository at this point in the history
Apparently in GitHub Actions only the GITHUB_TOKEN secret is automatically
passed to workflow calls while all other secrets are not. [1] To allow that one
can either pass them as named secrets or by setting "secrets: inherit" on the
workflow call. We do the later since it's simple enough for our use case.

[1] https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview
  • Loading branch information
romangg committed Mar 3, 2024
1 parent b4236b6 commit 99f3a61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
test:
uses: ./.github/workflows/test.yml
needs: clang-build
secrets: inherit
with:
image: registry.gitlab.com/kwinft/ci-images/archlinux/kwinft-base-master
artifact-name: clang-build
Expand Down

0 comments on commit 99f3a61

Please sign in to comment.