diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 02570ecd2ac..863b71c96c3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,7 +18,7 @@ jobs: outputs: skip: ${{ steps.check_docs_only.outputs.skip }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - id: check_docs_only @@ -27,7 +27,7 @@ jobs: run: | REF="HEAD^" [[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2) - echo "::set-output name=skip::$(.github/workflows/check-docs-only.sh $REF)" + echo "skip=$(.github/workflows/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT # Job to test release steps. This will only create a release remotely if run on a tagged commit. goreleaser: @@ -39,7 +39,7 @@ jobs: environment: deploy steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -77,14 +77,14 @@ jobs: steps: - name: set up qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: set up buildx uses: docker/setup-buildx-action@v3 - name: quay.io login if: ${{ github.event_name != 'pull_request' }} - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} @@ -92,7 +92,7 @@ jobs: # Check out repo before tag step for script. - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -100,7 +100,7 @@ jobs: id: tags run: | IMG=quay.io/${{ github.repository_owner }}/${{ matrix.id }} - echo ::set-output name=tags::$(.github/workflows/get_image_tags.sh "$IMG" "v") + echo tags=$(.github/workflows/get_image_tags.sh "$IMG" "v") >> $GITHUB_OUTPUT - name: build and push uses: docker/build-push-action@v6 @@ -123,14 +123,14 @@ jobs: steps: - name: set up qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: set up buildx uses: docker/setup-buildx-action@v3 - name: quay.io login if: ${{ github.event_name != 'pull_request' }} - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} @@ -138,7 +138,7 @@ jobs: # Check out repo before tag step for script. - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -146,7 +146,7 @@ jobs: id: tags run: | IMG=quay.io/${{ github.repository_owner }}/scorecard-test-kuttl - echo ::set-output name=tags::$(.github/workflows/get_image_tags.sh "$IMG" "scorecard-kuttl/v") + echo tags=$(.github/workflows/get_image_tags.sh "$IMG" "scorecard-kuttl/v") >> $GITHUB_OUTPUT - name: build and push uses: docker/build-push-action@v6 diff --git a/.github/workflows/freshen-images.yml b/.github/workflows/freshen-images.yml index 0ebf7b583a7..1a0681ba8a3 100644 --- a/.github/workflows/freshen-images.yml +++ b/.github/workflows/freshen-images.yml @@ -18,7 +18,7 @@ jobs: git_tags: ${{ steps.tags.outputs.git_tags }} steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - id: tags @@ -35,17 +35,17 @@ jobs: id: ["operator-sdk", "helm-operator", "scorecard-test"] steps: - name: set up qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: set up buildx uses: docker/setup-buildx-action@v3 - name: quay.io login - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} registry: quay.io - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 - name: build and push diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 12ce343c646..e402088bd8d 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -9,7 +9,7 @@ jobs: outputs: skip: ${{ steps.check_docs_only.outputs.skip }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - id: check_docs_only @@ -18,7 +18,7 @@ jobs: run: | REF="HEAD^" [[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2) - echo "::set-output name=skip::$(.github/workflows/check-docs-only.sh $REF)" + echo "skip=$(.github/workflows/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT integration: name: integration @@ -26,7 +26,7 @@ jobs: needs: check_docs_only if: needs.check_docs_only.outputs.skip != 'true' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-go@v5 diff --git a/.github/workflows/olm-check.yml b/.github/workflows/olm-check.yml index 3475b2e58df..8adfa2bfed1 100644 --- a/.github/workflows/olm-check.yml +++ b/.github/workflows/olm-check.yml @@ -12,7 +12,7 @@ jobs: name: check-olm-minor-releases runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - id: run-check-olm run: ./hack/check-olm.sh diff --git a/.github/workflows/test-go.yml b/.github/workflows/test-go.yml index 3c75ed68837..3b686274058 100644 --- a/.github/workflows/test-go.yml +++ b/.github/workflows/test-go.yml @@ -12,7 +12,7 @@ jobs: outputs: skip: ${{ steps.check_docs_only.outputs.skip }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - id: check_docs_only @@ -21,7 +21,7 @@ jobs: run: | REF="HEAD^" [[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2) - echo "::set-output name=skip::$(.github/workflows/check-docs-only.sh $REF)" + echo "skip=$(.github/workflows/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT e2e: name: e2e @@ -29,7 +29,7 @@ jobs: needs: check_docs_only if: needs.check_docs_only.outputs.skip != 'true' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-go@v5 @@ -44,7 +44,7 @@ jobs: needs: check_docs_only if: needs.check_docs_only.outputs.skip != 'true' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-go@v5 diff --git a/.github/workflows/test-helm.yml b/.github/workflows/test-helm.yml index f78b5ac5ba0..ab1160c1abe 100644 --- a/.github/workflows/test-helm.yml +++ b/.github/workflows/test-helm.yml @@ -9,7 +9,7 @@ jobs: outputs: skip: ${{ steps.check_docs_only.outputs.skip }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - id: check_docs_only @@ -18,7 +18,7 @@ jobs: run: | REF="HEAD^" [[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2) - echo "::set-output name=skip::$(.github/workflows/check-docs-only.sh $REF)" + echo "skip=$(.github/workflows/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT e2e: name: e2e @@ -26,7 +26,7 @@ jobs: needs: check_docs_only if: needs.check_docs_only.outputs.skip != 'true' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-go@v5 diff --git a/.github/workflows/test-sample-go.yml b/.github/workflows/test-sample-go.yml index 3d5fef7f701..f1f117c064a 100644 --- a/.github/workflows/test-sample-go.yml +++ b/.github/workflows/test-sample-go.yml @@ -9,7 +9,7 @@ jobs: outputs: skip: ${{ steps.check_docs_only.outputs.skip }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - id: check_docs_only @@ -18,7 +18,7 @@ jobs: run: | REF="HEAD^" [[ -z "${{ github.base_ref }}" ]] || REF=$(git show-ref ${{ github.base_ref }} | head -1 | cut -d' ' -f2) - echo "::set-output name=skip::$(.github/workflows/check-docs-only.sh $REF)" + echo "skip=$(.github/workflows/check-docs-only.sh $REF)" >> $GITHUB_OUTPUT e2e: name: e2e @@ -26,7 +26,7 @@ jobs: needs: check_docs_only if: needs.check_docs_only.outputs.skip != 'true' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-go@v5 diff --git a/.github/workflows/test-sanity.yml b/.github/workflows/test-sanity.yml index c05cc66d7b6..32c89e0aaa4 100644 --- a/.github/workflows/test-sanity.yml +++ b/.github/workflows/test-sanity.yml @@ -9,7 +9,7 @@ jobs: outputs: skip: ${{ steps.check_docs_only.outputs.skip }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - id: check_docs_only @@ -26,7 +26,7 @@ jobs: needs: check_docs_only if: needs.check_docs_only.outputs.skip != 'true' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-go@v5 @@ -40,12 +40,12 @@ jobs: name: docs runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: recursive - run: make test-docs - - uses: gaurav-nelson/github-action-markdown-link-check@1.0.13 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 with: max-depth: 1 config-file: '.github/workflows/markdown-link-check-config.json' diff --git a/images/custom-scorecard-tests/Dockerfile b/images/custom-scorecard-tests/Dockerfile index 95a81e0231c..5fc6942577d 100644 --- a/images/custom-scorecard-tests/Dockerfile +++ b/images/custom-scorecard-tests/Dockerfile @@ -1,5 +1,5 @@ # Build the custom-scorecard-tests binary -FROM --platform=$BUILDPLATFORM golang:1.21 as builder +FROM --platform=$BUILDPLATFORM golang:1.21 AS builder ARG TARGETARCH WORKDIR /workspace diff --git a/images/helm-operator/Dockerfile b/images/helm-operator/Dockerfile index 35036a7eea3..8e3c7eeca8d 100644 --- a/images/helm-operator/Dockerfile +++ b/images/helm-operator/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM --platform=$BUILDPLATFORM golang:1.21 as builder +FROM --platform=$BUILDPLATFORM golang:1.21 AS builder ARG TARGETARCH WORKDIR /workspace diff --git a/images/operator-sdk/Dockerfile b/images/operator-sdk/Dockerfile index 775d998f16c..a47903b68c8 100644 --- a/images/operator-sdk/Dockerfile +++ b/images/operator-sdk/Dockerfile @@ -1,5 +1,5 @@ # Build the operator-sdk binary -FROM --platform=$BUILDPLATFORM golang:1.21 as builder +FROM --platform=$BUILDPLATFORM golang:1.21 AS builder ARG TARGETARCH WORKDIR /workspace @@ -19,7 +19,7 @@ RUN GOOS=linux GOARCH=$TARGETARCH make build/operator-sdk # Final image. FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10 -ENV GO_VERSION 1.19 +ENV GO_VERSION=1.19 ARG TARGETARCH RUN microdnf install -y make gcc which tar gzip diff --git a/images/scorecard-test-kuttl/Dockerfile b/images/scorecard-test-kuttl/Dockerfile index 0c4f9d81d4c..0c38e0ab3ee 100644 --- a/images/scorecard-test-kuttl/Dockerfile +++ b/images/scorecard-test-kuttl/Dockerfile @@ -1,5 +1,5 @@ # Build the scorecard-test-kuttl binary -FROM --platform=$BUILDPLATFORM golang:1.21 as builder +FROM --platform=$BUILDPLATFORM golang:1.21 AS builder ARG TARGETARCH ARG BUILDPLATFORM diff --git a/images/scorecard-test/Dockerfile b/images/scorecard-test/Dockerfile index cf417394cb6..e3c49c5d3a4 100644 --- a/images/scorecard-test/Dockerfile +++ b/images/scorecard-test/Dockerfile @@ -1,5 +1,5 @@ # Build the scorecard-test binary -FROM --platform=$BUILDPLATFORM golang:1.21 as builder +FROM --platform=$BUILDPLATFORM golang:1.21 AS builder ARG TARGETARCH WORKDIR /workspace