mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
fix(security): fix .github/actions/setup/action.yml templating issue (#7858)
Co-authored-by: aikido-autofix[bot] <119856028+aikido-autofix[bot]@users.noreply.github.com>
This commit is contained in:
parent
67b5949ce7
commit
3c457dfb86
1 changed files with 3 additions and 1 deletions
4
.github/actions/setup/action.yml
vendored
4
.github/actions/setup/action.yml
vendored
|
|
@ -25,13 +25,15 @@ runs:
|
||||||
- name: check pnpm version
|
- name: check pnpm version
|
||||||
shell: bash
|
shell: bash
|
||||||
id: pnpm
|
id: pnpm
|
||||||
|
env:
|
||||||
|
INSTALL_DEPENDENCIES: ${{ inputs.installDependencies }}
|
||||||
run: |
|
run: |
|
||||||
PNPM_VERSION=$(cat package.json | jq -r '.packageManager' | awk -F@ '{print $2}')
|
PNPM_VERSION=$(cat package.json | jq -r '.packageManager' | awk -F@ '{print $2}')
|
||||||
PNPM_VERSION=${PNPM_VERSION:-9}
|
PNPM_VERSION=${PNPM_VERSION:-9}
|
||||||
echo "Using PNPM version $PNPM_VERSION"
|
echo "Using PNPM version $PNPM_VERSION"
|
||||||
echo "version=$PNPM_VERSION" >> $GITHUB_OUTPUT
|
echo "version=$PNPM_VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
if [ ${{ inputs.installDependencies }} = true ]; then
|
if [ $INSTALL_DEPENDENCIES = true ]; then
|
||||||
echo "cache=pnpm" >> $GITHUB_OUTPUT
|
echo "cache=pnpm" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "cache=" >> $GITHUB_OUTPUT
|
echo "cache=" >> $GITHUB_OUTPUT
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue