diff --git a/.github/workflows/reusable_build_docker.yaml b/.github/workflows/reusable_build_docker.yaml index 0526d27f..e16ab70c 100644 --- a/.github/workflows/reusable_build_docker.yaml +++ b/.github/workflows/reusable_build_docker.yaml @@ -35,7 +35,7 @@ jobs: uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 - name: Build no-driver image run: | diff --git a/.github/workflows/reusable_publish_docker.yaml b/.github/workflows/reusable_publish_docker.yaml index 3010f00f..74e2f12b 100644 --- a/.github/workflows/reusable_publish_docker.yaml +++ b/.github/workflows/reusable_publish_docker.yaml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 # TODO needs to be updated + uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 - name: Download images tarballs uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 @@ -39,7 +39,7 @@ jobs: for img in /tmp/falco-images/falco-*.tar; do docker load --input $img; done - name: Login to Docker Hub - uses: docker/login-action@v2 # TODO needs to be updated + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 with: username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_SECRET }} @@ -76,14 +76,14 @@ jobs: docker push docker.io/falcosecurity/falco-driver-loader-legacy:x86_64-${{ inputs.tag }} - name: Create no-driver manifest on Docker Hub - uses: Noelware/docker-manifest-action@0.3.1 # TODO needs to be updated (it might have cosign integration!) + uses: Noelware/docker-manifest-action@8e337e3cb9656abfcf20146b99706fd88716e942 # v0.4.0 with: inputs: docker.io/falcosecurity/falco-no-driver:${{ inputs.tag }} images: docker.io/falcosecurity/falco-no-driver:aarch64-${{ inputs.tag }},docker.io/falcosecurity/falco-no-driver:x86_64-${{ inputs.tag }} push: true - name: Create distroless manifest on Docker Hub - uses: Noelware/docker-manifest-action@0.3.1 + uses: Noelware/docker-manifest-action@8e337e3cb9656abfcf20146b99706fd88716e942 # v0.4.0 with: inputs: docker.io/falcosecurity/falco-distroless:${{ inputs.tag }} images: docker.io/falcosecurity/falco-distroless:aarch64-${{ inputs.tag }},docker.io/falcosecurity/falco-distroless:x86_64-${{ inputs.tag }} @@ -94,21 +94,21 @@ jobs: crane copy docker.io/falcosecurity/falco-no-driver:${{ inputs.tag }} docker.io/falcosecurity/falco:${{ inputs.tag }}-slim - name: Create falco manifest on Docker Hub - uses: Noelware/docker-manifest-action@0.3.1 + uses: Noelware/docker-manifest-action@8e337e3cb9656abfcf20146b99706fd88716e942 # v0.4.0 with: inputs: docker.io/falcosecurity/falco:${{ inputs.tag }} images: docker.io/falcosecurity/falco:aarch64-${{ inputs.tag }},docker.io/falcosecurity/falco:x86_64-${{ inputs.tag }} push: true - name: Create falco-driver-loader manifest on Docker Hub - uses: Noelware/docker-manifest-action@0.3.1 + uses: Noelware/docker-manifest-action@8e337e3cb9656abfcf20146b99706fd88716e942 # v0.4.0 with: inputs: docker.io/falcosecurity/falco-driver-loader:${{ inputs.tag }} images: docker.io/falcosecurity/falco-driver-loader:aarch64-${{ inputs.tag }},docker.io/falcosecurity/falco-driver-loader:x86_64-${{ inputs.tag }} push: true - name: Create falco-driver-loader-legacy manifest on Docker Hub - uses: Noelware/docker-manifest-action@0.3.1 + uses: Noelware/docker-manifest-action@8e337e3cb9656abfcf20146b99706fd88716e942 # v0.4.0 with: inputs: docker.io/falcosecurity/falco-driver-loader-legacy:${{ inputs.tag }} images: docker.io/falcosecurity/falco-driver-loader-legacy:aarch64-${{ inputs.tag }},docker.io/falcosecurity/falco-driver-loader-legacy:x86_64-${{ inputs.tag }} @@ -116,6 +116,7 @@ jobs: - name: Get Digests for images id: digests + # We could probably use the docker-manifest-action output instead of recomputing those with crane run: | echo "falco-no-driver=$(crane digest docker.io/falcosecurity/falco-no-driver:${{ inputs.tag }})" >> $GITHUB_OUTPUT echo "falco-distroless=$(crane digest docker.io/falcosecurity/falco-distroless:${{ inputs.tag }})" >> $GITHUB_OUTPUT