From e5b626f23a4fab5c20495a0de70829d73a3a8ba6 Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Sun, 23 Feb 2025 22:14:42 +0100 Subject: [PATCH 1/2] update gh actions Signed-off-by: reubenmiller --- .../actions/build_export_docker/action.yml | 2 +- .github/actions/load_docker/action.yml | 4 +-- .github/workflows/ci.yml | 34 +++++++++---------- .github/workflows/nightly-next.yml | 12 +++---- .github/workflows/nightly.yml | 6 ++-- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/actions/build_export_docker/action.yml b/.github/actions/build_export_docker/action.yml index a9f2a8f2..45ae3e6b 100644 --- a/.github/actions/build_export_docker/action.yml +++ b/.github/actions/build_export_docker/action.yml @@ -15,7 +15,7 @@ runs: run: docker save ${{ inputs.image-name }} > /tmp/${{ inputs.image-name }}.tar shell: bash - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ inputs.image-name }} path: /tmp/${{ inputs.image-name }}.tar diff --git a/.github/actions/load_docker/action.yml b/.github/actions/load_docker/action.yml index 02819daf..9dc9808a 100644 --- a/.github/actions/load_docker/action.yml +++ b/.github/actions/load_docker/action.yml @@ -11,9 +11,9 @@ inputs: runs: using: "composite" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ inputs.image-name }} path: ${{ inputs.image-path }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 128b59ba..9a63bf38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: # For running this job we need to manually trigger the CI and set the variable if: ${{ github.event.inputs.trigger_test_all_docker == 'parsec-service-test-all' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build and Export Docker Image uses: ./.github/actions/build_export_docker with: @@ -35,7 +35,7 @@ jobs: # For running this job we need to manually trigger the CI and set the variable if: ${{ github.event.inputs.trigger_test_cross_docker == 'parsec-service-test-cross-compile' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build and Export Docker Image uses: ./.github/actions/build_export_docker with: @@ -47,7 +47,7 @@ jobs: if: ${{ always() }} needs: [build-and-export-test-all-docker] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run the container to execute the test script uses: ./.github/actions/ci_script with: @@ -59,7 +59,7 @@ jobs: if: ${{ always() }} needs: [build-and-export-test-all-docker] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run the container to execute the test script uses: ./.github/actions/ci_script with: @@ -72,7 +72,7 @@ jobs: if: ${{ always() }} needs: [build-and-export-test-all-docker] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run the container to execute the test script uses: ./.github/actions/ci_script with: @@ -84,7 +84,7 @@ jobs: if: ${{ always() }} needs: [build-and-export-test-all-docker] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run the container to execute the test script uses: ./.github/actions/ci_script with: @@ -96,7 +96,7 @@ jobs: if: ${{ always() }} needs: [build-and-export-test-all-docker] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run the container to execute the test script uses: ./.github/actions/ci_script with: @@ -108,7 +108,7 @@ jobs: if: ${{ always() }} needs: [build-and-export-test-all-docker] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run the container to execute the test script uses: ./.github/actions/ci_script with: @@ -120,7 +120,7 @@ jobs: if: ${{ always() }} needs: [build-and-export-test-all-docker] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run the container to execute the test script uses: ./.github/actions/ci_script with: @@ -132,7 +132,7 @@ jobs: if: ${{ always() }} needs: [build-and-export-test-all-docker] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run the container to execute the test script uses: ./.github/actions/ci_script with: @@ -144,7 +144,7 @@ jobs: if: ${{ always() }} needs: [build-and-export-test-all-docker] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Load Docker uses: ./.github/actions/load_docker if: ${{ env.TEST_ALL_DOCKER_IMAGE == 'parsec-service-test-all' }} @@ -166,7 +166,7 @@ jobs: if: ${{ always() }} needs: [build-and-export-test-all-docker] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run the container to execute the test script uses: ./.github/actions/ci_script with: @@ -179,7 +179,7 @@ jobs: if: ${{ always() }} needs: [build-and-export-cross-compile-docker] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Load Docker uses: ./.github/actions/load_docker if: ${{ env.TEST_CROSS_DOCKER_IMAGE == 'parsec-service-test-cross-compile' }} @@ -197,7 +197,7 @@ jobs: name: Check links runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Link Checker uses: peter-evans/link-checker@v1 with: @@ -209,14 +209,14 @@ jobs: name: "Run cargo deny" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: EmbarkStudios/cargo-deny-action@v1 + - uses: actions/checkout@v4 + - uses: EmbarkStudios/cargo-deny-action@v2 mismatcher: name: Check for mismatched dependencies (those that have more than one version) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: "${{ github.event.inputs.rev }}" - name: Run the container to execute the dependency mismatcher script diff --git a/.github/workflows/nightly-next.yml b/.github/workflows/nightly-next.yml index 44ae98d0..09884d5a 100644 --- a/.github/workflows/nightly-next.yml +++ b/.github/workflows/nightly-next.yml @@ -20,7 +20,7 @@ jobs: name: Various tests targeting a Parsec image with all providers included runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "${{ github.event.inputs.rev }}" - name: Run the container to execute the test script @@ -32,7 +32,7 @@ jobs: name: Cargo check all-providers (current Rust stable & old compiler) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "${{ github.event.inputs.rev }}" - name: Run the container to execute the test script @@ -44,7 +44,7 @@ jobs: name: Integration tests using Mbed Crypto provider runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "${{ github.event.inputs.rev }}" - name: Run the container to execute the test script @@ -56,7 +56,7 @@ jobs: name: Integration tests using PKCS 11 provider runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "${{ github.event.inputs.rev }}" - name: Run the container to execute the test script @@ -68,7 +68,7 @@ jobs: name: Integration tests using TPM provider runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "${{ github.event.inputs.rev }}" - name: Run the container to execute the test script @@ -80,7 +80,7 @@ jobs: name: Integration tests using Crypto Trusted Service provider runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "${{ github.event.inputs.rev }}" - name: Run the container to execute the test script diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 4781f663..1a3acf1f 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -16,7 +16,7 @@ jobs: name: Check for unused dependencies runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: "${{ github.event.inputs.rev }}" - name: Install latest Rust @@ -32,7 +32,7 @@ jobs: name: Check for crates with security vulnerabilities runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: "${{ github.event.inputs.rev }}" - name: Install latest Rust @@ -51,7 +51,7 @@ jobs: name: Gather coverage data and upload to Codecov runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: "${{ github.event.inputs.rev }}" - name: Run the container to execute the coverage script From 3c80ac62a1e5e7d52173a292ea2d3eab919e7817 Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Sun, 23 Feb 2025 22:15:14 +0100 Subject: [PATCH 2/2] switch to maintained rust toolchain gh action Signed-off-by: reubenmiller --- .github/workflows/nightly.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1a3acf1f..9df981ff 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -20,9 +20,10 @@ jobs: with: ref: "${{ github.event.inputs.rev }}" - name: Install latest Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly + rustflags: "" - name: Install cargo udeps run: cargo install cargo-udeps --locked - name: Execute cargo udeps @@ -36,9 +37,10 @@ jobs: with: ref: "${{ github.event.inputs.rev }}" - name: Install latest Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly + rustflags: "" - name: Install cargo audit run: cargo install cargo-audit - name: Execute cargo audit