Skip to content

Commit 16630fa

Browse files
authored
Merge branch 'main' into I91-LogTamperingAnalysis
2 parents 1f3cba9 + 286dc6d commit 16630fa

File tree

23 files changed

+1227
-1104
lines changed

23 files changed

+1227
-1104
lines changed

.github/workflows/build.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build clients
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- "src/**"
8+
9+
jobs:
10+
# test locally with: `act -s GITHUB_TOKEN=$(gh auth token) --env github.actor=$USER`
11+
# get 'act': https://nektosact.com/installation/index.html
12+
build-clients:
13+
name: Build clients
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
steps:
18+
- name: Install Task
19+
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
20+
with:
21+
version: 3.x
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
- name: Checkout Code
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25+
- name: run task clients:build
26+
run: task clients:build

.github/workflows/code-lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
version: 3.x
3232
repo-token: ${{ secrets.GITHUB_TOKEN }}
3333
- name: Checkout Code
34-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
34+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3535
- name: Do some linting
3636
run: task code:lint

.github/workflows/dice-go.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
version: 3.x
2424
repo-token: ${{ secrets.GITHUB_TOKEN }}
2525
- name: Checkout Code
26-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
- name: Build image
2828
run: task clients:build-dice-go
2929
- name: Login to GitHub Container Registry

.github/workflows/dice-java.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
version: 3.x
2424
repo-token: ${{ secrets.GITHUB_TOKEN }}
2525
- name: Checkout Code
26-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
- name: Build image
2828
run: task clients:build-dice-java
2929
- name: Login to GitHub Container Registry

.github/workflows/loggen-go.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
version: 3.x
2424
repo-token: ${{ secrets.GITHUB_TOKEN }}
2525
- name: Checkout Code
26-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
- name: Build image
2828
run: task clients:build-loggen-go
2929
- name: Login to GitHub Container Registry

.github/workflows/recommendation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
version: 3.x
2424
repo-token: ${{ secrets.GITHUB_TOKEN }}
2525
- name: Checkout Code
26-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
- name: Build image
2828
run: task clients:build-recommendation
2929
- name: Login to GitHub Container Registry

.github/workflows/spellcheck.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
version: 3.x
2626
repo-token: ${{ secrets.GITHUB_TOKEN }}
2727
- name: Checkout Code
28-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2929
- name: Check spelling
3030
run: task code:spellcheck

src/dice-go/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# --- Build Stage ---
2-
FROM golang:1.25-bookworm AS builder
2+
FROM golang:1.26-alpine AS builder
33
# build the application
44
WORKDIR /usr/src/app/
55
# let's create separate layers for dependencies and source code
@@ -10,7 +10,7 @@ COPY main.go main.go
1010
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -ldflags "-s -w" -o dice-go main.go
1111

1212
# --- Run Stage ---
13-
FROM gcr.io/distroless/static-debian12:nonroot
13+
FROM gcr.io/distroless/static-debian13:nonroot
1414

1515
ARG REST_PORT=8081
1616
ENV REST_PORT=${REST_PORT}

0 commit comments

Comments
 (0)