Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
41 changes: 41 additions & 0 deletions .github/workflows/build-test-analyse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build, Test & Analyse

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-and-test-java-app:
name: Build & Test Java App
uses: DNAstack/dnastack-development-tools/.github/workflows/build-test-java-app.yml@d01a9e8068e2bc4b92536ea6d8f536b48dcd1699
with:
java-version: 11
secrets:
pat-with-read-packages-permission: ${{ secrets.AUTH_TOKEN }}

sast:
name: SAST (SonarQube)
uses: DNAstack/dnastack-development-tools/.github/workflows/sast.yml@d01a9e8068e2bc4b92536ea6d8f536b48dcd1699
with:
with-frontend: false
java-version: 11
secrets:
pat-with-read-packages-permission: ${{ secrets.AUTH_TOKEN }}
sonar-token: ${{ secrets.SONAR_TOKEN }}
sonar-host-url: ${{ secrets.SONAR_HOST_URL }}

sca:
name: SCA (Trivy)
uses: DNAstack/dnastack-development-tools/.github/workflows/sca.yml@d01a9e8068e2bc4b92536ea6d8f536b48dcd1699
with:
java-version: 11
secrets:
pat-with-read-packages-permission: ${{ secrets.AUTH_TOKEN }}

secrets-detection:
name: Secrets Detection (Gitleaks)
uses: DNAstack/dnastack-development-tools/.github/workflows/secrets-detection.yml@d01a9e8068e2bc4b92536ea6d8f536b48dcd1699
secrets:
gitleaks-license: ${{ secrets.GITLEAKS_LICENSE }}
13 changes: 13 additions & 0 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Gitleaks configuration — controls secret scanning behavior.
# See: https://github.com/gitleaks/gitleaks#configuration

# Use the default detection rules.
[extend]
useDefault = true

# Exclude build artifacts and dependency directories from scanning.
[[allowlists]]
description = "exclude build artifacts and dependency directories"
paths = [
'''target/''',
]
6 changes: 6 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Gitleaks ignore file — suppresses known/accepted secret findings.
# Each line is a fingerprint from gitleaks output. New secrets in the same
# files will still be caught — only these specific findings are suppressed.
#
# To add a new entry: run `gitleaks detect --source . --no-git -v`,
# copy the Fingerprint line, and add it here with a comment explaining why.
8 changes: 8 additions & 0 deletions .trivyignore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Trivy ignore file for known/accepted vulnerabilities.
# See: https://trivy.dev/docs/configuration/filtering/#trivyignoreyaml
#
# Format:
# vulnerabilities:
# - id: CVE-XXXX-XXXXX
# reason: "Why this is acceptable"
# expired_at: 2026-XX-XXT00:00:00Z
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.8</version>
<version>1.2.13</version>
</dependency>

<!-- Test -->
Expand Down