From 7ede5af692e1cd1899439436288a9ba145fdf1eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Sat, 4 May 2024 18:04:14 +0800 Subject: [PATCH] Updating deprecated GitHub actions (#1629) * Updating deprecated GitHub actions * code review: use commit hash for actions --- .github/workflows/build.yml | 52 ++++++++++++++++----------------- .github/workflows/cifuzz.yml | 2 +- .github/workflows/master.yml | 14 ++++----- .github/workflows/scorecard.yml | 4 +-- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2fdaa4a..be1ad093 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,7 +59,7 @@ jobs: EVENT_MATRIX: UBSAN steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Build uses: actions/cache@v4 with: @@ -157,12 +157,12 @@ jobs: cmake --build . --target verify fi - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() && matrix.EVENT_MATRIX != 'DIST' with: name: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-build path: build - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() && matrix.EVENT_MATRIX == 'DIST' with: name: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-dist @@ -180,7 +180,7 @@ jobs: - os: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Build uses: actions/cache@v4 with: @@ -229,7 +229,7 @@ jobs: cd build make -j $JOBS verify - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() with: name: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-dist @@ -256,7 +256,7 @@ jobs: - TEST_EXPORT_STATIC steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Build uses: actions/cache@v4 @@ -372,7 +372,7 @@ jobs: $host.SetShouldExit($LastExitCode) } - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() with: name: ${{ matrix.os }}-${{ matrix.EVENT_MATRIX }}-build @@ -385,7 +385,7 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Build uses: actions/cache@v4 with: @@ -433,7 +433,7 @@ jobs: make verify -j $EVENT_TESTS_PARALLEL 2>&1 ' D:\a\_temp\msys64\usr\bin\bash.exe -c $script - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() with: name: mingw-${{ matrix.EVENT_MATRIX }}-build @@ -456,7 +456,7 @@ jobs: - DISABLE_MM_REPLACEMENT steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Build uses: actions/cache@v4 with: @@ -518,7 +518,7 @@ jobs: cd build ctest --output-on-failure - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() with: name: mingw-${{ matrix.EVENT_MATRIX }}-build @@ -542,7 +542,7 @@ jobs: - TEST_EXPORT_SHARED steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Build uses: actions/cache@v4 @@ -609,7 +609,7 @@ jobs: cmake --build . --target verify fi - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() with: name: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-build @@ -624,7 +624,7 @@ jobs: os: [macos-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Build uses: actions/cache@v4 @@ -659,7 +659,7 @@ jobs: cd build make -j $JOBS verify - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() with: name: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-build @@ -683,7 +683,7 @@ jobs: - TEST_EXPORT_SHARED steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Build uses: actions/cache@v4 @@ -753,7 +753,7 @@ jobs: fi EOF - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() with: name: freebsd-${{ matrix.release }}-cmake-${{ matrix.EVENT_MATRIX }}-build @@ -768,7 +768,7 @@ jobs: release: ["13.2"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Build uses: actions/cache@v4 @@ -806,7 +806,7 @@ jobs: make verify EOF - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() with: name: freebsd-${{ matrix.release }}-autotools-${{ matrix.EVENT_MATRIX }}-build @@ -838,7 +838,7 @@ jobs: # - TEST_EXPORT_SHARED steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Build uses: actions/cache@v4 @@ -908,7 +908,7 @@ jobs: fi EOF - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() with: name: openbsd-${{ matrix.release }}-cmake-${{ matrix.EVENT_MATRIX }}-build @@ -923,7 +923,7 @@ jobs: release: [""] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cache Build uses: actions/cache@v4 @@ -964,7 +964,7 @@ jobs: make verify EOF - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() with: name: openbsd-${{ matrix.release }}-autotools-${{ matrix.EVENT_MATRIX }}-build @@ -1020,7 +1020,7 @@ jobs: strategy: fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Dependencies run: sudo apt install @@ -1039,12 +1039,12 @@ jobs: ./extra/abi-check/abi_check.sh env: ABI_CHECK_ROOT: /tmp/le-abi-root - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 if: failure() with: name: build path: /tmp/le-abi-root - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 with: name: build path: /tmp/le-abi-root/work/abi-check diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml index 2d008596..be95074e 100644 --- a/.github/workflows/cifuzz.yml +++ b/.github/workflows/cifuzz.yml @@ -29,7 +29,7 @@ jobs: fuzz-seconds: 300 language: c++ - name: Upload Crash - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() && steps.build.outcome == 'success' with: name: artifacts diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 21a0deb5..de58e286 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -15,7 +15,7 @@ jobs: contents: read # for actions/checkout to fetch code runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - name: Cache uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: @@ -48,7 +48,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: ./build/coverage.info.cleaned - - uses: actions/upload-artifact@3446296876d12d4e3a0f3145a3c87e67bf0a16b5 # v1.0.0 + - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 if: failure() with: name: coverage-build @@ -68,7 +68,7 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - name: Install Dependencies run: @@ -115,12 +115,12 @@ jobs: git push -f git@github.com:$owner_name/abi master # XXX: requires container-id for docker - - uses: actions/upload-artifact@3446296876d12d4e3a0f3145a3c87e67bf0a16b5 # v1.0.0 + - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 if: failure() with: name: build path: /tmp/le-abi-root - - uses: actions/upload-artifact@3446296876d12d4e3a0f3145a3c87e67bf0a16b5 # v1.0.0 + - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 with: name: build path: /tmp/le-abi-root/work/abi-check @@ -133,7 +133,7 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - name: Install Depends run: | sudo apt install doxygen libmbedtls-dev @@ -169,7 +169,7 @@ jobs: git commit -m "Update documentation (libevent/libevent@$short_commit_id)" git push -f git@github.com:$owner_name/doc master - - uses: actions/upload-artifact@3446296876d12d4e3a0f3145a3c87e67bf0a16b5 # v1.0.0 + - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 if: failure() with: name: doxygen-build diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 3d0544f3..096c0ff5 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -25,7 +25,7 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 with: persist-credentials: false @@ -42,7 +42,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@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 with: name: SARIF file path: results.sarif