2022-03-15 07:59:59 +00:00
|
|
|
# For most projects, this workflow file will not need changing; you simply need
|
|
|
|
# to commit it to your repository.
|
|
|
|
#
|
|
|
|
# You may wish to alter this file to override the set of languages analyzed,
|
|
|
|
# or to provide custom queries or build logic.
|
|
|
|
name: "CodeQL JS Adapter"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-03-29 13:10:20 +00:00
|
|
|
branches-ignore: [main]
|
2022-03-15 07:59:59 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
paths:
|
|
|
|
- 'adapters/oidc/js/**'
|
|
|
|
schedule:
|
|
|
|
- cron: '0 9 * * 2'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: CodeQL analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-03-28 15:51:51 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-java@v2
|
2022-03-15 07:59:59 +00:00
|
|
|
with:
|
2022-03-28 16:57:17 +00:00
|
|
|
distribution: 'zulu'
|
2022-03-15 07:59:59 +00:00
|
|
|
java-version: '11'
|
|
|
|
|
|
|
|
- name: Update maven settings
|
|
|
|
run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/
|
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
|
|
|
uses: github/codeql-action/init@v1
|
|
|
|
env:
|
|
|
|
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"finalize":["--no-run-unnecessary-builds"]}}'
|
|
|
|
with:
|
|
|
|
languages: javascript
|
|
|
|
source-root: adapters/oidc/js/
|
|
|
|
|
|
|
|
- name: Build Keycloak
|
|
|
|
run: mvn install -Dmaven.test.skip -DskipQuarkus -DskipTestsuite -DskipExamples -DskipTests
|
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
|
|
|
uses: github/codeql-action/analyze@v1
|
|
|
|
env:
|
|
|
|
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"interpret-results":["--max-paths",0]}}'
|