Add codeql.
This commit is contained in:
parent
8fbe1b526a
commit
1d172026eb
3 changed files with 29 additions and 2 deletions
26
.github/workflows/codeql.yaml
vendored
Normal file
26
.github/workflows/codeql.yaml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: CodeQL
|
||||
|
||||
"on":
|
||||
workflow_dispatch: {}
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths: [src/main/java/*.java]
|
||||
schedule:
|
||||
- cron: '0 0 * * 0'
|
||||
|
||||
jobs:
|
||||
codeql:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
security-events: write
|
||||
actions: read
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: java
|
||||
- uses: github/codeql-action/autobuild@v1
|
||||
- uses: github/codeql-action/analyze@v1
|
Loading…
Add table
Add a link
Reference in a new issue