Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
19 changes: 19 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build PR

on:
pull_request:

permissions:
contents: read
checks: write
pull-requests: write

jobs:
build:
# Shared org build: Temurin toolchain, 3-OS matrix, tests and coverage.
uses: OneLiteFeatherNET/workflows/.github/workflows/gradle-build-pr.yml@v2.8.1
with:
java-version: "21"
java-distribution: "temurin"
run-tests: false
secrets: inherit
10 changes: 10 additions & 0 deletions .github/workflows/close_invalid_prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Close invalid PRs

on:
pull_request_target:
types: [opened]

jobs:
close:
uses: OneLiteFeatherNET/workflows/.github/workflows/close-invalid-prs.yml@v2.8.1
secrets: inherit
Comment on lines +9 to +10
55 changes: 55 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Security

# Trivy vulnerability gate plus a CycloneDX SBOM of the repository. Self-contained
# on purpose: it needs no build tool and no registry credentials, so it is the
# baseline security gate for every repository regardless of language.
on:
pull_request:
push:
branches: [main]
schedule:
- cron: "57 5 * * 1"
workflow_dispatch:
permissions:
contents: read
security-events: write

jobs:
trivy:
name: Trivy scan
uses: OneLiteFeatherNET/workflows/.github/workflows/security-scan.yml@v2.8.1
with:
scan-type: "fs"
scanners: "vuln,secret"
severity: "CRITICAL,HIGH"
# Report-only for now, so adopting this does not turn CI red on day one.
fail-on-findings: false
upload-sarif: true
secrets: inherit

sbom:
name: CycloneDX SBOM
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Generate SBOM
uses: aquasecurity/trivy-action@v0.36.0
with:
scan-type: fs
scan-ref: .
format: cyclonedx
output: bom.json
# An SBOM is an inventory, not a finding list - never fail on it.
exit-code: '0'

- name: Upload SBOM
uses: actions/upload-artifact@v4
with:
name: sbom-cyclonedx
path: bom.json
if-no-files-found: error
retention-days: 90
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
"github>OneLiteFeatherNET/renovate:default(OneLiteFeatherNET/ultimate-spawn-maintainers)"
]
}
Loading