keycloak-scim/.github/workflows/codeql-js-adapter-analysis.yml

52 lines
1.4 KiB
YAML
Raw Normal View History

# 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:
branches-ignore: [main]
pull_request:
branches: [main]
paths:
- 'adapters/oidc/js/**'
schedule:
- cron: '0 9 * * 2'
jobs:
analyze:
name: CodeQL analyze
runs-on: ubuntu-latest
2022-05-31 07:34:26 +00:00
if: github.repository == 'keycloak/keycloak'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
2022-03-30 15:45:31 +00:00
distribution: 'temurin'
java-version: '11'
2022-04-14 14:42:47 +00:00
cache: 'maven'
- name: Update maven settings
run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/
- name: Initialize CodeQL
uses: github/codeql-action/init@v2.1.12
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@v2.1.12
with:
wait-for-processing: true
env:
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"interpret-results":["--max-paths",0]}}'