Skip to content

Commit 6f32bae

Browse files
authored
Merge pull request #17 from TotallyNotRobots/renovate/pin-dependencies
Pin dependencies
2 parents 9b8025f + b6f0e95 commit 6f32bae

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,38 +29,38 @@ jobs:
2929
echo "IMAGE_NAME=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}"
3030
3131
- name: Checkout repository
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3333

3434
- # https://github.com/vegardit/docker-gitea-act-runner/issues/23
3535
name: Fix docker sock permissions
3636
run: sudo chmod 666 /var/run/docker.sock
3737
- # https://github.com/docker/setup-qemu-action
3838
name: Set up QEMU
39-
uses: docker/setup-qemu-action@v3
39+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3
4040
- # https://github.com/docker/setup-buildx-action
4141
name: Set up Docker Buildx
4242
id: buildx
43-
uses: docker/setup-buildx-action@v3
43+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
4444

4545
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
4646
- name: Log in to the Container registry
47-
uses: docker/login-action@v3
47+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
4848
with:
4949
registry: ${{ env.REGISTRY }}
5050
username: ${{ github.actor }}
5151
password: ${{ secrets.GITHUB_TOKEN }}
5252
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
5353
- name: Extract metadata (tags, labels) for Docker
5454
id: meta
55-
uses: docker/metadata-action@v5
55+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5
5656
with:
5757
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5858
tags: |
5959
type=ref,event=pr
6060
type=semver,pattern={{version}}
6161
- # httos://github.com/actions/cache
6262
name: Cache Docker layers
63-
uses: actions/cache@v4
63+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
6464
with:
6565
path: |
6666
/go/pkg/mod/
@@ -75,7 +75,7 @@ jobs:
7575
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
7676
- name: Build and push Docker image
7777
id: push
78-
uses: docker/build-push-action@v6
78+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
7979
with:
8080
context: .
8181
build-args: |
@@ -89,7 +89,7 @@ jobs:
8989

9090
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
9191
- name: Generate artifact attestation
92-
uses: actions/attest-build-provenance@v2
92+
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2
9393
with:
9494
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
9595
subject-digest: ${{ steps.push.outputs.digest }}

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
checks:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-go@v5
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
1919
with:
2020
go-version-file: go.mod
2121

@@ -26,6 +26,6 @@ jobs:
2626
run: make test
2727

2828
- name: golangci-lint
29-
uses: golangci/golangci-lint-action@v8
29+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
3030
with:
3131
version: latest

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Load golang image
2-
FROM golang:1.24-alpine as builder
2+
FROM golang:1.24-alpine@sha256:ddf52008bce1be455fe2b22d780b6693259aaf97b16383b6372f4b22dd33ad66 as builder
33

44
RUN apk add make
55

@@ -35,7 +35,7 @@ RUN --mount=type=cache,target=/tmp/.go-build-cache \
3535
make build VERSION=$VERSION
3636

3737
# Now create a new image with just the binary
38-
FROM gcr.io/distroless/static-debian12:nonroot
38+
FROM gcr.io/distroless/static-debian12:nonroot@sha256:627d6c5a23ad24e6bdff827f16c7b60e0289029b0c79e9f7ccd54ae3279fb45f
3939

4040
WORKDIR /app
4141

0 commit comments

Comments
 (0)