diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79a6714..0a0faf2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,13 +52,13 @@ jobs: steps: - name: Checkout project repository - uses: actions/checkout@v4 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: repository: ${{ env.REPOSITORY }} ref: ${{ matrix.ref }} - name: Checkout containers repository - uses: actions/checkout@v4 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: path: containers @@ -83,17 +83,17 @@ jobs: - name: Install cosign if: github.ref == 'refs/heads/main' - uses: sigstore/cosign-installer@v3 + uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3 - name: Set up QEMU - uses: docker/setup-qemu-action@v3 + uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3 - name: Setup Docker buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3 - name: Log into registry ${{ env.REGISTRY }} if: github.ref == 'refs/heads/main' - uses: docker/login-action@v3 + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -101,7 +101,7 @@ jobs: - name: Extract Docker metadata id: meta - uses: docker/metadata-action@v5 + uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | @@ -109,7 +109,7 @@ jobs: - name: Build and push Docker image id: build-and-push - uses: docker/build-push-action@v5 + uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5 with: context: . file: ${{ steps.prepare.outputs.DOCKERFILE }} diff --git a/dakara-server.Dockerfile b/dakara-server.Dockerfile index 951f6c6..c650448 100644 --- a/dakara-server.Dockerfile +++ b/dakara-server.Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-slim +FROM python:3.11-slim@sha256:ce81dc539f0aedc9114cae640f8352fad83d37461c24a3615b01f081d0c0583a ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1