Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
aebaa4f
Add sample kube linter workflow to play with
William-Edwards-STFC Nov 4, 2026
7eab959
Add image
William-Edwards-STFC Nov 4, 2026
4d510f4
Add permissions
William-Edwards-STFC Nov 4, 2026
26726cc
testing with dind then will switch back
William-Edwards-STFC Nov 4, 2026
d797aaa
Log results
William-Edwards-STFC Nov 4, 2026
6d7d5a0
Use 1 directory not whole thing
William-Edwards-STFC Nov 4, 2026
c4c3e42
Test dind
William-Edwards-STFC Nov 4, 2026
e81e7f1
Fix repo pull
William-Edwards-STFC Nov 4, 2026
f98a8a8
Test without token
William-Edwards-STFC Nov 4, 2026
2e83883
Remove as not neede
William-Edwards-STFC Nov 4, 2026
5a6210a
Test out matrix strategy for folder checking with the action
William-Edwards-STFC Nov 5, 2026
1b00bd0
Fake change will revert
William-Edwards-STFC Nov 5, 2026
98da7a1
Use config file
William-Edwards-STFC Nov 5, 2026
b85f333
Add mentioned config file as it wont work without
William-Edwards-STFC Nov 5, 2026
e64a299
register change to test
William-Edwards-STFC Nov 5, 2026
08cf5fc
Fix changes on this file
William-Edwards-STFC Nov 5, 2026
acc53f0
Only add overlays
William-Edwards-STFC Nov 5, 2026
7c3bbd0
Add empty space to trigger job
William-Edwards-STFC Nov 5, 2026
cba7c8a
Add fixes to frontend
William-Edwards-STFC Nov 5, 2026
f1934b7
Add to workflow
William-Edwards-STFC Nov 5, 2026
bffdd28
Set it to R&A files
William-Edwards-STFC Nov 5, 2026
4788442
Add a space
William-Edwards-STFC Nov 5, 2026
df36527
Fix volume host path
William-Edwards-STFC Nov 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/kube-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check Kubernetes YAMLs with kube-linter

on:
push:
branches: [ test-branch-kube-lint ]
# Keep this list in sync with the matrix below
paths:
- 'components/ra/**'

permissions:
contents: read

jobs:
scan:
runs-on: fase-self-hosted-dind
strategy:
fail-fast: true
matrix:
directory:
- components/ra/user-claims-backend/overlays
- components/ra/user-claims-frontend/overlays
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Scan ${{ matrix.directory }} with KubeLinter
uses: stackrox/kube-linter-action@v1
with:
directory: ${{ matrix.directory }}
config: .kube-linter.yaml
format: plain
7 changes: 7 additions & 0 deletions .kube-linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# kube-linter configuration
# Uses kube-linter's default checks, minus the CPU/memory requests and limits checks.
checks:
addAllBuiltIn: false # Keep the default set rather than enabling every built-in check
exclude:
- unset-cpu-requirements
- unset-memory-requirements
7 changes: 6 additions & 1 deletion components/ra/user-claims-backend/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@ spec:
containers:
- name: user-claims-backend
imagePullPolicy: Always
securityContext:
runAsNonRoot: true
runAsUser: 1000
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
ports:
- containerPort: 3001
envFrom:
- secretRef:
name: user-claims-backend
volumeMounts:
- name: uploads
mountPath: "/app/uploads"
mountPath: "/app/backend/uploads"
readOnly: false
readinessProbe:
httpGet:
Expand Down
6 changes: 6 additions & 0 deletions components/ra/user-claims-frontend/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ spec:
spec:
containers:
- name: user-claims-frontend
securityContext:
runAsNonRoot: true
runAsUser: 1000
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
imagePullPolicy: Always
ports:
- containerPort: 6011
Expand All @@ -30,3 +35,4 @@ spec:
- name: env-config
secret:
secretName: user-claims-frontend