Skip to content

Commit

Permalink
get-vault-secrets: Use env var to get action path rather than `github…
Browse files Browse the repository at this point in the history
…` context

See [this `actions/runner` issue][issue]. The `${{ github.action_path
}}` substitution we're using doesn't work properly when the action is
run in a container job. The workaround folks are using is to use the
`${GITHUB_ACTION_PATH}` _environment variable` instead. We should start
doing that too.

[issue]: actions/runner#2185
  • Loading branch information
iainlane committed Jun 27, 2024
1 parent 052e478 commit 329ec23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/get-vault-secrets/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ runs:
# Translate the secrets into a format that the Vault action can understand
- id: translate-secrets
shell: bash
run: ${{ github.action_path }}/translate-secrets.sh
run: "${GITHUB_ACTION_PATH}/translate-secrets.sh"
env:
REPO_SECRETS: ${{ inputs.repo_secrets }}
COMMON_SECRETS: ${{ inputs.common_secrets }}
Expand Down

0 comments on commit 329ec23

Please sign in to comment.