File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -13,30 +13,30 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- name : Checkout repository
16
- uses : actions/checkout@v4
16
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17
17
- name : Run tests
18
18
run : make test
19
19
20
20
lint :
21
21
runs-on : ubuntu-latest
22
22
steps :
23
23
- name : Checkout repository
24
- uses : actions/checkout@v4
24
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
25
25
- name : Run linter
26
26
run : make lint
27
27
28
28
tidy :
29
29
runs-on : ubuntu-latest
30
30
steps :
31
31
- name : Checkout repository
32
- uses : actions/checkout@v4
32
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
33
33
- name : Check go mod tidy
34
34
run : make tidy-ci
35
35
36
36
build :
37
37
runs-on : ubuntu-latest
38
38
steps :
39
39
- name : Checkout repository
40
- uses : actions/checkout@v4
40
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
41
41
- name : Build binary
42
42
run : make docker-build
Original file line number Diff line number Diff line change @@ -17,18 +17,18 @@ jobs:
17
17
18
18
steps :
19
19
- name : Checkout repository
20
- uses : actions/checkout@v4
20
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
21
21
22
22
- name : Log in to Container Registry
23
- uses : docker/login-action@v3
23
+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
24
24
with :
25
25
registry : ghcr.io
26
26
username : ${{ github.repository_owner }}
27
27
password : ${{ secrets.GITHUB_TOKEN }}
28
28
29
29
- name : Extract metadata
30
30
id : meta
31
- uses : docker/metadata-action@v5
31
+ uses : docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5
32
32
with :
33
33
images : ghcr.io/jkoelker/schwab-proxy
34
34
tags : |
37
37
type=semver,pattern={{version}}
38
38
39
39
- name : Build and push Docker image
40
- uses : docker/build-push-action@v6
40
+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
41
41
with :
42
42
context : .
43
43
push : true
Original file line number Diff line number Diff line change 1
1
# Build stage
2
- FROM docker.io/golang:1.24.5-alpine AS builder
2
+ FROM docker.io/golang:1.24.5-alpine@sha256:ddf52008bce1be455fe2b22d780b6693259aaf97b16383b6372f4b22dd33ad66 AS builder
3
3
4
4
# Set build environment for static linking
5
5
ENV CGO_ENABLED=0 \
@@ -38,7 +38,7 @@ RUN go build \
38
38
./cmd/schwab-proxy
39
39
40
40
# Runtime stage - distroless for maximum security
41
- FROM gcr.io/distroless/static-debian12:nonroot
41
+ FROM gcr.io/distroless/static-debian12:nonroot@sha256:627d6c5a23ad24e6bdff827f16c7b60e0289029b0c79e9f7ccd54ae3279fb45f
42
42
43
43
LABEL org.opencontainers.image.source=https://github.com/jkoelker/schwab-proxy
44
44
Original file line number Diff line number Diff line change 1
1
# Get as many dependancies from official docker images to allow
2
2
# `dependabot` to manage them for us.
3
- FROM docker.io/golangci/golangci-lint:v2.2.2 as golangci-lint
4
- FROM ghcr.io/hadolint/hadolint:2.12.0 as hadolint
5
- FROM docker.io/golang:1.24.5-alpine
3
+ FROM docker.io/golangci/golangci-lint:v2.2.2@sha256:0f0e3fad35aa127e2823e79809727709bceb6b899ad17362b92a6148ba40c862 as golangci-lint
4
+ FROM ghcr.io/hadolint/hadolint:2.12.0@sha256:30a8fd2e785ab6176eed53f74769e04f125afb2f74a6c52aef7d463583b6d45e as hadolint
5
+ FROM docker.io/golang:1.24.5-alpine@sha256:ddf52008bce1be455fe2b22d780b6693259aaf97b16383b6372f4b22dd33ad66
6
6
7
7
RUN apk add --no-cache \
8
8
bash==5.2.37-r0 \
You can’t perform that action at this time.
0 commit comments