From 8e7e6b026f0ef00fd0f3d3cbeb41a02f8621c785 Mon Sep 17 00:00:00 2001 From: deannagarcia <69992229+deannagarcia@users.noreply.github.com> Date: Wed, 18 Dec 2024 09:17:28 -0800 Subject: [PATCH] Update artifact actions to v4 (#19703) * Update artifact actions to v4 * Update one more download-artifact --- .github/workflows/scorecard.yml | 2 +- .github/workflows/test_php_ext.yml | 4 ++-- .github/workflows/test_upb.yml | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 22b319564940b..97f07417a8013 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -47,7 +47,7 @@ jobs: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - name: "Upload artifact" - uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: name: SARIF file path: results.sarif diff --git a/.github/workflows/test_php_ext.yml b/.github/workflows/test_php_ext.yml index a47459bfcad35..5179c9f7baa66 100644 --- a/.github/workflows/test_php_ext.yml +++ b/.github/workflows/test_php_ext.yml @@ -42,7 +42,7 @@ jobs: bazel build //php:release $BAZEL_FLAGS; cp bazel-bin/php/protobuf-*.tgz . - - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce + - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: name: protobuf-php-release path: protobuf-*.tgz @@ -61,7 +61,7 @@ jobs: name: ${{ matrix.continuous-only && inputs.continuous-prefix || '' }} Build ${{ matrix.version }} runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a + - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 #4.1.8 if: ${{ !matrix.continuous-only || inputs.continuous-run }} with: name: protobuf-php-release diff --git a/.github/workflows/test_upb.yml b/.github/workflows/test_upb.yml index 93dba0017167d..5d52429fabc10 100644 --- a/.github/workflows/test_upb.yml +++ b/.github/workflows/test_upb.yml @@ -167,11 +167,11 @@ jobs: bazel: build --crosstool_top=//toolchain:clang_suite --//toolchain:release=true --symlink_prefix=/ -c dbg //python/dist //python/dist:test_wheel //python/dist:source_wheel - name: Move Wheels run: mkdir wheels && find _build/out \( -name 'protobuf*.whl' -o -name 'protobuf-*.tar.gz' \) -exec mv '{}' wheels ';' - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: name: python-wheels path: wheels/ - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: name: requirements # Tests shouldn't have access to the whole upb repo, upload the one file we need @@ -216,13 +216,13 @@ jobs: steps: - name: Download Wheels if: ${{ !matrix.continuous-only || inputs.continuous-run }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 #4.1.8 with: name: python-wheels path: wheels - name: Download Requirements if: ${{ !matrix.continuous-only || inputs.continuous-run }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 #4.1.8 with: name: requirements path: requirements @@ -281,7 +281,7 @@ jobs: if: ${{ github.event_name != 'pull_request_target' }} steps: - name: Download Wheels - uses: actions/download-artifact@v3 + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 #4.1.8 with: name: python-wheels path: wheels