Skip to content

Commit 0d6f18c

Browse files
authored
ci: pin container base images by digest, validate Gradle wrapper, add Dependabot (#199)
Signed-off-by: Michael Garber <michael.garber@hashgraph.com>
1 parent 56baa24 commit 0d6f18c

4 files changed

Lines changed: 58 additions & 3 deletions

File tree

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 10
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*"
12+
13+
- package-ecosystem: "docker"
14+
directories:
15+
- "/heka-auth-service"
16+
- "/heka-identity-service"
17+
schedule:
18+
interval: "weekly"
19+
open-pull-requests-limit: 10
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Validate Gradle Wrapper
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
# This allows a subsequently queued workflow run to interrupt previous runs
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
14+
cancel-in-progress: true
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
validation:
21+
name: Validate Gradle Wrapper
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Harden the runner (Audit all outbound calls)
26+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
27+
with:
28+
egress-policy: audit
29+
30+
- name: Checkout repository
31+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
32+
with:
33+
persist-credentials: false
34+
35+
- name: Validate Gradle Wrapper
36+
uses: gradle/actions/wrapper-validation@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0

heka-auth-service/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22 AS builder
1+
FROM node:22@sha256:8a34c4ab3ea2c5cd194f07e317b2a8f09461d3c8b05c4e34c8ccd56d56024c4d AS builder
22

33
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
44

@@ -13,7 +13,7 @@ RUN yarn install --immutable
1313
COPY . .
1414
RUN yarn build
1515

16-
FROM node:22-bookworm-slim
16+
FROM node:22-bookworm-slim@sha256:83f487e0a63425e5b4d146fb5e5be574bcbe1b7b843d3ebafdd95eaf7767a7e5
1717

1818
RUN apt-get update && apt-get install curl -y
1919

heka-identity-service/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22-bullseye-slim
1+
FROM node:22-bullseye-slim@sha256:5736e7ef1f3f2109be7ef8aea0cbdf931804aee9a18c6760507b8ded078b25a9
22

33
ARG EXPRESS_PORT
44

0 commit comments

Comments
 (0)