Tighten up github actions security #206
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Reusable Workflows see: https://github.com/entur/gha-security/blob/main/README-code-scan.md | ||
| name: CodeQL Scan | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - "master" | ||
| push: | ||
| branches: | ||
| - "master" | ||
| schedule: | ||
| - cron: "0 3 * * MON" # Run Monday at 3AM UTC | ||
| jobs: | ||
| code-scan: | ||
|
Check failure on line 16 in .github/workflows/codeql.yml
|
||
| name: CodeQL Scan | ||
| uses: entur/gha-security/.github/workflows/code-scan.yml@v2 | ||
| permissions: | ||
| contents: read | ||
| security-events: write | ||
| actions: read | ||
| pull-requests: read | ||
| with: | ||
| use_setup_java: true | ||
| use_maven_cache: true | ||
| java_version: "25" | ||