Add codeql.
This commit is contained in:
parent
8fbe1b526a
commit
10170c8044
3 changed files with 31 additions and 2 deletions
28
.github/workflows/codeql.yaml
vendored
Normal file
28
.github/workflows/codeql.yaml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: CodeQL
|
||||
|
||||
"on":
|
||||
workflow_dispatch: {}
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- '**/*.java'
|
||||
- pom.xml
|
||||
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
|
1
.github/workflows/release.yaml
vendored
1
.github/workflows/release.yaml
vendored
|
@ -20,6 +20,7 @@ jobs:
|
|||
with:
|
||||
distribution: temurin
|
||||
java-version: 11
|
||||
cache: maven
|
||||
server-id: sonatype-nexus
|
||||
server-username: SERVER_USERNAME
|
||||
server-password: SERVER_PASSWORD
|
||||
|
|
4
.github/workflows/snapshot.yaml
vendored
4
.github/workflows/snapshot.yaml
vendored
|
@ -6,7 +6,7 @@ name: Snapshot
|
|||
|
||||
jobs:
|
||||
|
||||
lint-yaml:
|
||||
yaml:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -15,7 +15,7 @@ jobs:
|
|||
format: colored
|
||||
strict: true
|
||||
|
||||
lint-markdown:
|
||||
markdown:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue