diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6411bb1..f6502b8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,20 +18,20 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4 - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # pin@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 + uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # pin@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - name: Build and push Docker image - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # pin@v6 with: context: . push: true diff --git a/pin-actions.sh b/pin-actions.sh new file mode 100644 index 0000000..9f2e8e1 --- /dev/null +++ b/pin-actions.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +npx pin-github-action ./.github/workflows/publish.yml \ No newline at end of file