Skip to content

Commit a807bbb

Browse files
committed
get-vault-secrets: Use env var to get action path rather than github 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
1 parent 052e478 commit a807bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actions/get-vault-secrets/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ runs:
5656
# Translate the secrets into a format that the Vault action can understand
5757
- id: translate-secrets
5858
shell: bash
59-
run: ${{ github.action_path }}/translate-secrets.sh
59+
run: "${GITHUB_ACTION_PATH}/translate-secrets.sh"
6060
env:
6161
REPO_SECRETS: ${{ inputs.repo_secrets }}
6262
COMMON_SECRETS: ${{ inputs.common_secrets }}

0 commit comments

Comments
 (0)