Skip to content

Commit 4beb87c

Browse files
authored
chore(deps): Pin GitHub Actions and Docker image, configure Dependabot (#2159)
* chore(actions): pinned-deps * chore(actions): pin docker image * fix * fix * fix * fix
1 parent 54160f6 commit 4beb87c

File tree

9 files changed

+35
-31
lines changed

9 files changed

+35
-31
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ updates:
88
- package-ecosystem: github-actions
99
directory: /
1010
schedule:
11-
interval: monthly
11+
interval: "monthly"
1212
target-branch: master
13+
- package-ecosystem: "docker"
14+
directory: "/"
15+
schedule:
16+
interval: "monthly"
1317
- package-ecosystem: gomod # See documentation for possible values
1418
open-pull-requests-limit: 10
1519
directory: / # Location of package manifests
1620
schedule:
17-
interval: weekly
21+
interval: "monthly"
1822
groups:
1923
aws:
2024
patterns:

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
steps:
1616
- name: Check out code into the Go module directory
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
1818
- name: Set up Go 1.x
19-
uses: actions/setup-go@v5
19+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b
2020
with:
2121
go-version-file: go.mod
2222
- name: build

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
4242

4343
- name: Set up Go 1.x
44-
uses: actions/setup-go@v5
44+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b
4545
with:
4646
go-version-file: go.mod
4747

4848
# Initializes the CodeQL tools for scanning.
4949
- name: Initialize CodeQL
50-
uses: github/codeql-action/init@v3
50+
uses: github/codeql-action/init@e0ea141027937784e3c10ed1679e503fcc2245bc
5151
with:
5252
languages: ${{ matrix.language }}
5353
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -58,7 +58,7 @@ jobs:
5858
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5959
# If this step fails, then you should remove it and run the build manually (see below)
6060
- name: Autobuild
61-
uses: github/codeql-action/autobuild@v3
61+
uses: github/codeql-action/autobuild@e0ea141027937784e3c10ed1679e503fcc2245bc
6262

6363
# ℹ️ Command-line programs to run using the OS shell.
6464
# 📚 https://git.io/JvXDl
@@ -72,4 +72,4 @@ jobs:
7272
# make release
7373

7474
- name: Perform CodeQL Analysis
75-
uses: github/codeql-action/analyze@v3
75+
uses: github/codeql-action/analyze@e0ea141027937784e3c10ed1679e503fcc2245bc

.github/workflows/docker-publish.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Maximize build space
17-
uses: easimon/maximize-build-space@v10
17+
uses: easimon/maximize-build-space@fc881a613ad2a34aca9c9624518214ebc21dfc0c
1818
with:
1919
root-reserve-mb: 32768
2020
remove-dotnet: "true"
@@ -24,38 +24,38 @@ jobs:
2424
remove-docker-images: "true"
2525

2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
2828

2929
- name: Set up QEMU
30-
uses: docker/setup-qemu-action@v3
30+
uses: docker/setup-qemu-action@fcd3152d8ad392d0e9c14d3f0de40f0a88b8ca0e
3131

3232
- name: Set up Docker Buildx
33-
uses: docker/setup-buildx-action@v3
33+
uses: docker/setup-buildx-action@afeb29a6e0d7d6258844ecabe6eba67d13443680
3434

3535
- name: vuls/vuls image meta
3636
id: oss-meta
37-
uses: docker/metadata-action@v5
37+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
3838
with:
3939
images: vuls/vuls
4040
tags: |
4141
type=ref,event=tag
4242
4343
- name: vuls/fvuls image meta
4444
id: fvuls-meta
45-
uses: docker/metadata-action@v5
45+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
4646
with:
4747
images: vuls/fvuls
4848
tags: |
4949
type=ref,event=tag
5050
5151
- name: Login to DockerHub
52-
uses: docker/login-action@v3
52+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
5353
with:
5454
username: ${{ secrets.DOCKERHUB_USERNAME }}
5555
password: ${{ secrets.DOCKERHUB_TOKEN }}
5656

5757
- name: OSS image build and push
58-
uses: docker/build-push-action@v6
58+
uses: docker/build-push-action@84ad562665bb303b549fec655d1b64f9945f3f91
5959
with:
6060
context: .
6161
file: ./Dockerfile
@@ -68,7 +68,7 @@ jobs:
6868
platforms: linux/amd64,linux/arm64
6969

7070
- name: FutureVuls image build and push
71-
uses: docker/build-push-action@v6
71+
uses: docker/build-push-action@84ad562665bb303b549fec655d1b64f9945f3f91
7272
with:
7373
context: .
7474
file: ./contrib/Dockerfile

.github/workflows/golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check out code into the Go module directory
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
1818
- name: Set up Go 1.x
19-
uses: actions/setup-go@v5
19+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b
2020
with:
2121
go-version-file: go.mod
2222
- name: golangci-lint
23-
uses: golangci/golangci-lint-action@v7
23+
uses: golangci/golangci-lint-action@c2427fec7902bf2304ba21394dce2ed2f2a6cb2c
2424
with:
2525
version: v2.0.2

.github/workflows/goreleaser.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
-
1717
name: Maximize build space
18-
uses: easimon/maximize-build-space@v10
18+
uses: easimon/maximize-build-space@fc881a613ad2a34aca9c9624518214ebc21dfc0c
1919
with:
2020
root-reserve-mb: 32768
2121
remove-dotnet: "true"
@@ -25,18 +25,18 @@ jobs:
2525
remove-docker-images: "true"
2626
-
2727
name: Checkout
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
2929
-
3030
name: Unshallow
3131
run: git fetch --prune --unshallow
3232
-
3333
name: Set up Go
34-
uses: actions/setup-go@v5
34+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b
3535
with:
3636
go-version-file: go.mod
3737
-
3838
name: Run GoReleaser
39-
uses: goreleaser/goreleaser-action@v6
39+
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3
4040
with:
4141
distribution: goreleaser
4242
version: latest

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out code into the Go module directory
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
1414
- name: Set up Go 1.x
15-
uses: actions/setup-go@v5
15+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b
1616
with:
1717
go-version-file: go.mod
1818
- name: Test

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:alpine as builder
1+
FROM golang:alpine@sha256:7772cb5322baa875edd74705556d08f0eeca7b9c4b5367754ce3f2f00041ccee as builder
22

33
RUN apk add --no-cache \
44
git \
@@ -10,7 +10,7 @@ ENV REPOSITORY github.com/future-architect/vuls
1010
COPY . $GOPATH/src/$REPOSITORY
1111
RUN cd $GOPATH/src/$REPOSITORY && make install
1212

13-
FROM alpine:3.16
13+
FROM alpine:3.21@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
1414

1515
ENV LOGDIR /var/log/vuls
1616
ENV WORKDIR /vuls

contrib/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:alpine as builder
1+
FROM golang:alpine@sha256:7772cb5322baa875edd74705556d08f0eeca7b9c4b5367754ce3f2f00041ccee as builder
22

33
RUN apk add --no-cache \
44
git \
@@ -14,7 +14,7 @@ RUN cd $GOPATH/src/$REPOSITORY && \
1414
make build-future-vuls && mv future-vuls $GOPATH/bin && \
1515
make build-snmp2cpe && mv snmp2cpe $GOPATH/bin
1616

17-
FROM alpine:3.15
17+
FROM alpine:3.21@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
1818

1919
ENV LOGDIR /var/log/vuls
2020
ENV WORKDIR /vuls

0 commit comments

Comments
 (0)