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
|
1
.github/workflows/release.yaml
vendored
1
.github/workflows/release.yaml
vendored
|
@ -20,6 +20,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
cache: maven
|
||||||
server-id: sonatype-nexus
|
server-id: sonatype-nexus
|
||||||
server-username: SERVER_USERNAME
|
server-username: SERVER_USERNAME
|
||||||
server-password: SERVER_PASSWORD
|
server-password: SERVER_PASSWORD
|
||||||
|
|
4
.github/workflows/snapshot.yaml
vendored
4
.github/workflows/snapshot.yaml
vendored
|
@ -6,7 +6,7 @@ name: Snapshot
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
lint-yaml:
|
yaml:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -15,7 +15,7 @@ jobs:
|
||||||
format: colored
|
format: colored
|
||||||
strict: true
|
strict: true
|
||||||
|
|
||||||
lint-markdown:
|
markdown:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue