From cf57115bd610057f86f6d8f27762566fd0dc03fb Mon Sep 17 00:00:00 2001 From: "hashicorp-tsccr[bot]" Date: Thu, 27 Apr 2023 09:31:21 +0100 Subject: [PATCH] Result of tsccr-helper -pin-all-workflows . --- .github/workflows/example.yml | 8 ++++---- .github/workflows/test.yml | 26 +++++++++++++------------- action.yml | 10 +++++----- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index eb413074..dddfa1e1 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -28,9 +28,9 @@ jobs: - { go: "1.16", goos: "solaris", goarch: "amd64" } steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Setup go - uses: actions/setup-go@v2 + uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0 with: go-version: ${{ matrix.go }} - name: Compile Binary @@ -41,7 +41,7 @@ jobs: go build -o "$product_name" . zip "${{ env.product_name }}_${{ env.version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip" "$product_name" - name: Upload product artifact. - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 with: path: example/${{ env.product_name }}_${{ env.version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip name: ${{ env.product_name }}_${{ env.version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip @@ -62,7 +62,7 @@ jobs: - { arch: "arm64" } steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Build # To run the example with the current commit use 'uses: ./' uses: ./ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 929d8a6d..8ad8641d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: run: | sudo git clone --depth 1 --branch "v$BATS_VERSION" "$BATS_REPO" "$BATS_PATH" echo "$BATS_PATH/bin" >> "$GITHUB_PATH" - - uses: actions/checkout@v2 + - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Run BATS tests run: make test @@ -27,18 +27,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Zip Test Bin run: | zip ./testdata/test_bin.zip ./testdata/test_bin zip ./testdata/actions-docker-build.zip ./testdata/actions-docker-build - name: Upload a test artifact. - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 with: path: testdata/test_bin.zip name: test_bin.zip - name: Upload a test artifact. - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 with: path: testdata/actions-docker-build.zip name: actions-docker-build.zip @@ -51,7 +51,7 @@ jobs: - action-test-prep steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 # Test setup. - name: Move Dockerfile to Repo Root run: | @@ -83,7 +83,7 @@ jobs: - action-test-prep steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Invoke Action uses: ./ # This is the action we're testing. with: @@ -111,7 +111,7 @@ jobs: - action-test-prep steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Invoke Action uses: ./ # This is the action we're testing. with: @@ -139,7 +139,7 @@ jobs: - action-test-prep steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Invoke Action uses: ./ with: @@ -164,7 +164,7 @@ jobs: - action-test-prep steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Invoke Action id: docker-build uses: ./ @@ -202,7 +202,7 @@ jobs: - action-test-prep steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 # Test setup. - name: Move Dockerfile to Repo Root run: | @@ -228,7 +228,7 @@ jobs: - action-test-prep steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 # Test setup - name: Move Dockerfile to Repo Root run: | @@ -249,10 +249,10 @@ jobs: - action-test-prep steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 # Handle the artifact download ourselves - name: Download Product Zip Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 with: path: archive name: actions-docker-build.zip diff --git a/action.yml b/action.yml index 3bae0a4a..9153f2a4 100644 --- a/action.yml +++ b/action.yml @@ -139,7 +139,7 @@ runs: run: ${{ github.action_path }}/scripts/register_qemu_binfmt - name: Download Product Zip Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 if: ${{ inputs.do_zip_extract_step == 'true' }} with: path: ${{ env.ZIP_LOCATION }} @@ -166,7 +166,7 @@ runs: run: ${{ github.action_path}}/scripts/create_metadata - name: Upload Docker Image metadata - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 env: # Add _redhat if this is a redhat call. REDHAT_SUFFIX: ${{ inputs.redhat_tag && '_redhat' || '' }} @@ -176,7 +176,7 @@ runs: if-no-files-found: error - name: Upload Prod Tarball - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 if: ${{ env.TAGS != '' }} with: name: ${{ env.TARBALL_NAME }} @@ -184,7 +184,7 @@ runs: if-no-files-found: error - name: Upload Dev Tarball - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 if: ${{ env.DEV_TAGS != '' }} with: name: ${{ env.DEV_TARBALL_NAME }} @@ -192,7 +192,7 @@ runs: if-no-files-found: error - name: Upload Red Hat Tarball - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 if: ${{ env.REDHAT_TAG != '' }} with: name: ${{ env.REDHAT_TARBALL_NAME }}