diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b3d82ba --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +# Weekly pull requests for newer Gradle libraries and GitHub Actions, aimed at experimental, +# where unreleased code lands. Security fixes come separately, as soon as an alert opens. +version: 2 +updates: + - package-ecosystem: gradle + directory: / + target-branch: experimental + schedule: + interval: weekly + open-pull-requests-limit: 5 + - package-ecosystem: github-actions + directory: / + target-branch: experimental + schedule: + interval: weekly diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml new file mode 100644 index 0000000..c310dc0 --- /dev/null +++ b/.github/workflows/trivy.yml @@ -0,0 +1,34 @@ +name: Security scan + +# Trivy looks through the repository for committed secrets and risky workflow or build +# settings. Findings show under the Security tab, next to CodeQL's and Dependabot's. +on: + push: + branches: [main, experimental] + pull_request: + schedule: + - cron: "0 9 * * 1" + workflow_dispatch: + +jobs: + trivy: + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + steps: + - uses: actions/checkout@v4 + + - uses: aquasecurity/trivy-action@v0.36.0 + with: + scan-type: fs + scanners: vuln,secret,misconfig + format: sarif + output: trivy.sarif + severity: MEDIUM,HIGH,CRITICAL + + - uses: github/codeql-action/upload-sarif@v4 + if: always() + with: + sarif_file: trivy.sarif + category: trivy