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

Lines changed: 11 additions & 8 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.vscode/*
22
bin/*
33
.idea
4+
.licensei.cache

.licensei.cache

Lines changed: 0 additions & 28 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 25 deletions
This file was deleted.

Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
# Go Custom Runner Environment
2-

0 commit comments

Comments
 (0)