diff --git a/.github/workflows/reusable_build_docker.yaml b/.github/workflows/reusable_build_docker.yaml index 0526d27f4f5..e16ab70c962 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 3010f00f40b..86f1b29711e 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,13 +39,13 @@ 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 }} - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1 with: role-to-assume: "arn:aws:iam::292999226676:role/github_actions-falco-ecr" aws-region: us-east-1 # The region must be set to us-east-1 in order to access ECR Public. @@ -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 diff --git a/.github/workflows/reusable_publish_packages.yaml b/.github/workflows/reusable_publish_packages.yaml index 8e5896234c3..530e5dd8418 100644 --- a/.github/workflows/reusable_publish_packages.yaml +++ b/.github/workflows/reusable_publish_packages.yaml @@ -36,7 +36,7 @@ jobs: # Configure AWS role; see https://github.com/falcosecurity/test-infra/pull/1102 # Note: master CI can only push dev packages as we have 2 different roles for master and release. - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v2 # TODO needs to be updated + uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1 with: role-to-assume: "arn:aws:iam::292999226676:role/github_actions-falco${{ inputs.bucket_suffix }}-s3" aws-region: ${{ env.AWS_S3_REGION }} @@ -109,7 +109,7 @@ jobs: # Configure AWS role; see https://github.com/falcosecurity/test-infra/pull/1102 # Note: master CI can only push dev packages as we have 2 different roles for master and release. - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1 with: role-to-assume: "arn:aws:iam::292999226676:role/github_actions-falco${{ inputs.bucket_suffix }}-s3" aws-region: ${{ env.AWS_S3_REGION }} diff --git a/.github/workflows/reusable_test_packages.yaml b/.github/workflows/reusable_test_packages.yaml index 8013f36d1dd..26f959b278b 100644 --- a/.github/workflows/reusable_test_packages.yaml +++ b/.github/workflows/reusable_test_packages.yaml @@ -28,7 +28,7 @@ jobs: submodules: 'true' - name: Setup Go - uses: actions/setup-go@v3 # TODO needs to be updated + uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: go-version: '>=1.17.0'