Skip to content

Commit dd383d4

Browse files
authored
Merge pull request #59 from kube-logging/chore/update-repo
chore: update repo
2 parents b5715e4 + 0cdd2ef commit dd383d4

12 files changed

+21
-69
lines changed

.github/workflows/artifacts.yaml

+11-8
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424

2525
- name: Gather metadata
2626
id: meta
27-
uses: docker/metadata-action@v5
27+
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
2828
with:
2929
images: ghcr.io/${{ github.repository_owner }}/custom-runner
3030
flavor: |
@@ -36,23 +36,23 @@ jobs:
3636
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
3737
3838
- name: Set up QEMU
39-
uses: docker/setup-qemu-action@v3
39+
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
4040
with:
4141
platforms: all
4242

4343
- name: Set up Docker Buildx
44-
uses: docker/setup-buildx-action@v3
44+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
4545

4646
- name: Login to GitHub Container Registry
47-
uses: docker/login-action@v3
47+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
4848
with:
4949
registry: ghcr.io
5050
username: ${{ github.actor }}
5151
password: ${{ github.token }}
5252
if: github.event_name == 'push'
5353

5454
- name: Build and push
55-
uses: docker/build-push-action@v6
55+
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
5656
with:
5757
context: .
5858
platforms: linux/amd64,linux/arm64,linux/arm/v7
@@ -63,15 +63,18 @@ jobs:
6363
labels: ${{ steps.meta.outputs.labels }}
6464

6565
- name: Run Trivy vulnerability scanner
66-
uses: aquasecurity/[email protected]
66+
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # 0.29.0
67+
env:
68+
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
69+
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1
6770
with:
6871
image-ref: "ghcr.io/${{ github.repository_owner }}/custom-runner:${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}"
6972
format: "sarif"
7073
output: "trivy-results.sarif"
7174
if: github.event_name == 'push'
7275

7376
- name: Upload Trivy scan results to GitHub Security tab
74-
uses: github/codeql-action/upload-sarif@v3
77+
uses: github/codeql-action/upload-sarif@6e5455904168f98c75d8e5ad848b4dc4ab3ae77e # v3.28.7
7578
with:
7679
sarif_file: "trivy-results.sarif"
7780
if: github.event_name == 'push'

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.vscode/*
22
bin/*
33
.idea
4+
.licensei.cache

.licensei.cache

-28
This file was deleted.

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.23 as builder
1+
FROM golang:1.23.5-alpine3.20@sha256:def59a601e724ddac5139d447e8e9f7d0aeec25db287a9ee1615134bcda266e2 as builder
22

33
WORKDIR /workspace
44

Dockerfile copy.node-exporter

-25
This file was deleted.

Dockerfile.alpine

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the runner binary
2-
FROM golang:1.23 as builder
2+
FROM golang:1.23.5-alpine3.20@sha256:def59a601e724ddac5139d447e8e9f7d0aeec25db287a9ee1615134bcda266e2 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

Dockerfile.busybox

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the runner binary
2-
FROM golang:1.23 as builder
2+
FROM golang:1.23.5-alpine3.20@sha256:def59a601e724ddac5139d447e8e9f7d0aeec25db287a9ee1615134bcda266e2 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

Dockerfile.node-exporter

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the runner binary
2-
FROM golang:1.23 as builder
2+
FROM golang:1.23.5-alpine3.20@sha256:def59a601e724ddac5139d447e8e9f7d0aeec25db287a9ee1615134bcda266e2 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ BIN := ${PWD}/bin
33
export PATH := ${BIN}:${PATH}
44

55
LICENSEI := ${BIN}/licensei
6-
LICENSEI_VERSION = v0.4.0
6+
LICENSEI_VERSION = v0.9.0
77

88
${BIN}:
99
mkdir -p ${BIN}

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
# Go Custom Runner Environment
2-

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module example.com/gocr
22

3-
go 1.23
3+
go 1.23.5
44

55
require (
66
github.com/fsnotify/fsnotify v1.8.0
77
github.com/mitchellh/mapstructure v1.5.0
88
gopkg.in/yaml.v3 v3.0.1
99
)
1010

11-
require golang.org/x/sys v0.13.0 // indirect
11+
require golang.org/x/sys v0.29.0 // indirect

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyua
44
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
55
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
66
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
7+
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
8+
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
79
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
810
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
911
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

0 commit comments

Comments
 (0)