diff --git a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_container %}container.yaml{% endif %}.jinja b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_container %}container.yaml{% endif %}.jinja index e3364e9..7e32efe 100644 --- a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_container %}container.yaml{% endif %}.jinja +++ b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/{% if enable_container %}container.yaml{% endif %}.jinja @@ -22,10 +22,10 @@ jobs: uses: actions/checkout@v7 - name: 🛠️ Set up buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: 🔑 Log in to the container registry - uses: docker/login-action@v3 + uses: docker/login-action@v4 if: {% raw %}${{ github.event_name != 'pull_request' }}{% endraw %} with: registry: ghcr.io @@ -33,7 +33,7 @@ jobs: password: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} - name: 📡 Collect image metadata - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v6 id: meta with: images: {% raw %}ghcr.io/${{ github.repository }}{% endraw %} @@ -45,7 +45,7 @@ jobs: type=sha - name: 📦 Build and publish container image - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 id: push with: context: . @@ -57,7 +57,7 @@ jobs: cache-to: type=gha,mode=max - name: 🔒 Attest build provenance - uses: actions/attest-build-provenance@v2 + uses: actions/attest-build-provenance@v4 if: {% raw %}${{ github.event_name != 'pull_request' }}{% endraw %} with: subject-name: {% raw %}ghcr.io/${{ github.repository }}{% endraw %} diff --git a/tests/template/__snapshots__/test_workflows.ambr b/tests/template/__snapshots__/test_workflows.ambr index affa23d..30eb066 100644 --- a/tests/template/__snapshots__/test_workflows.ambr +++ b/tests/template/__snapshots__/test_workflows.ambr @@ -1380,10 +1380,10 @@ uses: actions/checkout@v7 - name: 🛠️ Set up buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: 🔑 Log in to the container registry - uses: docker/login-action@v3 + uses: docker/login-action@v4 if: ${{ github.event_name != 'pull_request' }} with: registry: ghcr.io @@ -1391,7 +1391,7 @@ password: ${{ secrets.GITHUB_TOKEN }} - name: 📡 Collect image metadata - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v6 id: meta with: images: ghcr.io/${{ github.repository }} @@ -1403,7 +1403,7 @@ type=sha - name: 📦 Build and publish container image - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 id: push with: context: . @@ -1415,7 +1415,7 @@ cache-to: type=gha,mode=max - name: 🔒 Attest build provenance - uses: actions/attest-build-provenance@v2 + uses: actions/attest-build-provenance@v4 if: ${{ github.event_name != 'pull_request' }} with: subject-name: ghcr.io/${{ github.repository }}