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@945ddc20e0baa715095f63b282d81da7df57dd0b
with:
java-version: 17
secrets:
pat-with-read-packages-permission: ${{ secrets.AUTH_TOKEN }}

sast:
name: SAST (SonarQube)
uses: DNAstack/dnastack-development-tools/.github/workflows/sast.yml@945ddc20e0baa715095f63b282d81da7df57dd0b
with:
with-frontend: false
java-version: 17
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@945ddc20e0baa715095f63b282d81da7df57dd0b
with:
java-version: 17
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@945ddc20e0baa715095f63b282d81da7df57dd0b
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