Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/composite-actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,20 @@ runs:
- name: Parse filter
id: parse-filter
shell: bash
env:
FILTER: ${{ inputs.filter }}
run: |
echo "pnpm-filter-args=$(echo '"${{ inputs.filter }}"' | jq -r 'split(" ") | map(select(. != "")) | map("--filter " + .) | join(" ")')" >> "$GITHUB_OUTPUT"
echo "pnpm-filter-args=$(jq -rn --arg filter "$FILTER" '$filter | split(" ") | map(select(. != "")) | map("--filter " + .) | join(" ")')" >> "$GITHUB_OUTPUT"

- name: Install dependencies
shell: bash
run: |
pnpm config set //vercel-private-registry.vercel.sh/:_authToken ${{ inputs.vercel-private-registry-token }}
# filter is a JSON string, so we need to parse it and pass it as separate arguments
pnpm ${{ steps.parse-filter.outputs.pnpm-filter-args }} install --frozen-lockfile
pnpm config set //vercel-private-registry.vercel.sh/:_authToken "$VERCEL_PRIVATE_REGISTRY_TOKEN"
# PNPM_FILTER_ARGS is intentionally unquoted: it contains multiple --filter <pkg>
# arguments that must be word-split into separate flags.
# shellcheck disable=SC2086
pnpm $PNPM_FILTER_ARGS install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
VERCEL_PRIVATE_REGISTRY_TOKEN: ${{ inputs.vercel-private-registry-token }}
PNPM_FILTER_ARGS: ${{ steps.parse-filter.outputs.pnpm-filter-args }}
1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ If you believe you have found a security vulnerability, we encourage you to let
We will investigate all legitimate reports and do our best to quickly fix the problem.

Please report any vulnerabilities in our open source repositories to responsible.disclosure@vercel.com.
package-lock.json