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 Themes"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-07-05 08:36:44 +00:00
|
|
|
branches-ignore:
|
|
|
|
- 'main'
|
|
|
|
- 'dependabot/**'
|
2022-03-15 07:59:59 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
paths:
|
|
|
|
- 'themes/src/**'
|
2022-07-05 14:17:34 +00:00
|
|
|
- '.github/workflows/codeql-theme-analysis.yml'
|
2022-03-15 07:59:59 +00:00
|
|
|
schedule:
|
|
|
|
- cron: '0 9 * * 2'
|
2022-07-28 18:30:05 +00:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
# Only run once for latest commit per ref and cancel other (previous) runs.
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-03-15 07:59:59 +00:00
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: CodeQL analyze
|
|
|
|
runs-on: ubuntu-latest
|
2022-05-31 07:34:26 +00:00
|
|
|
if: github.repository == 'keycloak/keycloak'
|
2022-03-15 07:59:59 +00:00
|
|
|
|
|
|
|
steps:
|
2022-03-28 15:51:51 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-14 08:52:59 +00:00
|
|
|
- uses: actions/setup-java@v3
|
2022-03-15 07:59:59 +00:00
|
|
|
with:
|
2022-03-30 15:45:31 +00:00
|
|
|
distribution: 'temurin'
|
2022-03-15 07:59:59 +00:00
|
|
|
java-version: '11'
|
2022-04-14 14:42:47 +00:00
|
|
|
cache: 'maven'
|
2022-03-15 07:59:59 +00:00
|
|
|
|
|
|
|
- name: Update maven settings
|
|
|
|
run: mkdir -p ~/.m2 ; cp .github/settings.xml ~/.m2/
|
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
2022-10-04 04:58:49 +00:00
|
|
|
uses: github/codeql-action/init@v2.1.26
|
2022-03-15 07:59:59 +00:00
|
|
|
env:
|
|
|
|
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"finalize":["--no-run-unnecessary-builds"]}}'
|
|
|
|
with:
|
|
|
|
languages: javascript
|
|
|
|
source-root: themes/
|
|
|
|
|
|
|
|
- name: Build Keycloak
|
2022-07-05 14:17:34 +00:00
|
|
|
run: mvn -B install -DskipTests -DskipQuarkus -DskipTestsuite -DskipExamples -DskipTests
|
2022-03-15 07:59:59 +00:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2022-10-04 04:58:49 +00:00
|
|
|
uses: github/codeql-action/analyze@v2.1.26
|
2022-05-19 11:20:29 +00:00
|
|
|
with:
|
|
|
|
wait-for-processing: true
|
2022-03-15 07:59:59 +00:00
|
|
|
env:
|
|
|
|
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"interpret-results":["--max-paths",0]}}'
|