Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace pnpm/action-setup with a step-security maintained one #2676

Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
version: 3.35.1

- name: Install PNPM
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
uses: step-security/action-setup@303e8a1dabc4295b9b4ca0f4198fd42f7861406e # v4.0.0
with:
version: 8.15.4

Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
cat .env

- name: Install PNPM
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
uses: step-security/action-setup@303e8a1dabc4295b9b4ca0f4198fd42f7861406e # v4.0.0
with:
version: 8.15.4

Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
working-directory: packages/cryptography
if: ${{ steps.build-sdk.conclusion == 'success' && steps.stop-local-node.conclusion == 'success' && !cancelled() && always() }}
run: ${{ env.CG_EXEC }} task test:unit

- name: Codecov @hashgraph/cryptography
working-directory: packages/cryptography
if: ${{ steps.build-sdk.conclusion == 'success' && steps.stop-local-node.conclusion == 'success' && !cancelled() && always() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/common_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
version: 3.35.1

- name: Install PNPM
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
uses: step-security/action-setup@303e8a1dabc4295b9b4ca0f4198fd42f7861406e # v4.0.0
with:
version: 8.15.4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
node-version: 18

- name: Install PNPM
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
uses: step-security/action-setup@303e8a1dabc4295b9b4ca0f4198fd42f7861406e # v4.0.0
with:
version: 8.15.4

Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
SDK_PACKAGE_VERSION="$(jq -r '.version' package.json)"
PROTO_PACKAGE_VERSION="$(jq -r '.version' './packages/proto/package.json')"
CRYPTO_PACKAGE_VERSION="$(jq -r '.version' './packages/cryptography/package.json')"

echo "sdk-version=${SDK_PACKAGE_VERSION}" >>"${GITHUB_OUTPUT}"
echo "proto-version=${PROTO_PACKAGE_VERSION}" >>"${GITHUB_OUTPUT}"
echo "crypto-version=${CRYPTO_PACKAGE_VERSION}" >>"${GITHUB_OUTPUT}"
Expand All @@ -96,7 +96,7 @@ jobs:
if ! curl -sSLf "https://registry.npmjs.org/@hashgraph/proto/${{ steps.npm-package.outputs.proto-version }}" >/dev/null 2>&1; then
PUBLISH_REQUIRED="true"
fi

echo "publish-required=${PUBLISH_REQUIRED}" >>"${GITHUB_OUTPUT}"

- name: Crypto Subpackage Publish Required
Expand All @@ -106,7 +106,7 @@ jobs:
if ! curl -sSLf "https://registry.npmjs.org/@hashgraph/cryptography/${{ steps.npm-package.outputs.crypto-version }}" >/dev/null 2>&1; then
PUBLISH_REQUIRED="true"
fi

echo "publish-required=${PUBLISH_REQUIRED}" >>"${GITHUB_OUTPUT}"

- name: Extract SDK Tag Information
Expand Down Expand Up @@ -157,10 +157,10 @@ jobs:
echo "::error title=Invalid Tag::The tag '${{ steps.npm-package.outputs.proto-version }}' is not a valid SemVer tag."
exit 1
fi

PREREL_VERSION="$(semver get prerel '${{ steps.npm-package.outputs.proto-version }}')"
PREREL_VERSION_LC="$(printf "%s" "${PREREL_VERSION}" | tr '[:upper:]' '[:lower:]')"

IS_PRERELEASE="false"
[[ -n "${PREREL_VERSION}" ]] && IS_PRERELEASE="true"

Expand All @@ -174,10 +174,10 @@ jobs:
else
PREREL_TYPE="production"
fi

echo "prerelease=${IS_PRERELEASE}" >>"${GITHUB_OUTPUT}"
echo "type=${PREREL_TYPE}" >>"${GITHUB_OUTPUT}"

- name: Extract Crypto Subpackage Information
id: crypto-package
run: |
Expand All @@ -190,7 +190,7 @@ jobs:

PREREL_VERSION="$(semver get prerel '${{ steps.npm-package.outputs.crypto-version }}')"
PREREL_VERSION_LC="$(printf "%s" "${PREREL_VERSION}" | tr '[:upper:]' '[:lower:]')"

IS_PRERELEASE="false"
[[ -n "${PREREL_VERSION}" ]] && IS_PRERELEASE="true"

Expand All @@ -204,7 +204,7 @@ jobs:
else
PREREL_TYPE="production"
fi

echo "prerelease=${IS_PRERELEASE}" >>"${GITHUB_OUTPUT}"
echo "type=${PREREL_TYPE}" >>"${GITHUB_OUTPUT}"

Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
version: 3.35.1

- name: Install PNPM
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
uses: step-security/action-setup@303e8a1dabc4295b9b4ca0f4198fd42f7861406e # v4.0.0
with:
version: 8.15.4

Expand Down Expand Up @@ -284,7 +284,7 @@ jobs:
version: 3.35.1

- name: Install PNPM
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
uses: step-security/action-setup@303e8a1dabc4295b9b4ca0f4198fd42f7861406e # v4.0.0
with:
version: 8.15.4

Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:
PUBLISH_ARGS="--access public --no-git-checks"
[[ "${{ github.event.inputs.dry-run-enabled }}" == "true" ]] && PUBLISH_ARGS="${PUBLISH_ARGS} --dry-run"
[[ "${{ needs.validate-release.outputs.crypto-prerelease }}" == "true" ]] && PUBLISH_ARGS="${PUBLISH_ARGS} --tag ${{ needs.validate-release.outputs.crypto-type }}"

echo "args=${PUBLISH_ARGS}" >>"${GITHUB_OUTPUT}"

# Add the registry authentication stanza with variable substitution to the .npmrc configuration file.
Expand All @@ -334,9 +334,9 @@ jobs:
PUBLISH_ARGS="--access public --no-git-checks"
[[ "${{ github.event.inputs.dry-run-enabled }}" == "true" ]] && PUBLISH_ARGS="${PUBLISH_ARGS} --dry-run"
[[ "${{ needs.validate-release.outputs.sdk-prerelease }}" == "true" ]] && PUBLISH_ARGS="${PUBLISH_ARGS} --tag ${{ needs.validate-release.outputs.sdk-type }}"

echo "args=${PUBLISH_ARGS}" >>"${GITHUB_OUTPUT}"

# Add the registry authentication stanza with variable substitution to the .npmrc configuration file.
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >>".npmrc"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/react_native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
node-version: "16"

- name: Install PNPM
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
uses: step-security/action-setup@303e8a1dabc4295b9b4ca0f4198fd42f7861406e # v4.0.0
with:
version: 8.15.4

Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
node-version: "16"

- name: Install PNPM
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
uses: step-security/action-setup@303e8a1dabc4295b9b4ca0f4198fd42f7861406e # v4.0.0
with:
version: 8.15.4

Expand Down