|
| 1 | +# The contents of this file are subject to the terms of the Common Development and |
| 2 | +# Distribution License (the License). You may not use this file except in compliance with the |
| 3 | +# License. |
| 4 | +# |
| 5 | +# You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the |
| 6 | +# specific language governing permission and limitations under the License. |
| 7 | +# |
| 8 | +# When distributing Covered Software, include this CDDL Header Notice in each file and include |
| 9 | +# the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL |
| 10 | +# Header, with the fields enclosed by brackets [] replaced by your own identifying |
| 11 | +# information: "Portions copyright [year] [name of copyright owner]". |
| 12 | +# |
| 13 | +# Copyright 2026 3A Systems, LLC. |
| 14 | +name: "CodeQL" |
| 15 | + |
| 16 | +on: |
| 17 | + push: |
| 18 | + branches: [ 'master' ] |
| 19 | + pull_request: |
| 20 | + branches: [ 'master' ] |
| 21 | + schedule: |
| 22 | + - cron: '27 3 * * 1' |
| 23 | + workflow_dispatch: |
| 24 | + |
| 25 | +concurrency: |
| 26 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 27 | + cancel-in-progress: true |
| 28 | + |
| 29 | +permissions: |
| 30 | + contents: read |
| 31 | + |
| 32 | +jobs: |
| 33 | + analyze: |
| 34 | + name: Analyze (${{ matrix.language }}) |
| 35 | + runs-on: ubuntu-latest |
| 36 | + timeout-minutes: 360 |
| 37 | + permissions: |
| 38 | + security-events: write |
| 39 | + actions: read |
| 40 | + contents: read |
| 41 | + |
| 42 | + strategy: |
| 43 | + fail-fast: false |
| 44 | + matrix: |
| 45 | + include: |
| 46 | + - language: java-kotlin |
| 47 | + build-mode: none |
| 48 | + - language: javascript-typescript |
| 49 | + build-mode: none |
| 50 | + - language: actions |
| 51 | + build-mode: none |
| 52 | + |
| 53 | + steps: |
| 54 | + - name: Checkout repository |
| 55 | + uses: actions/checkout@v7 |
| 56 | + |
| 57 | + - name: Initialize CodeQL |
| 58 | + uses: github/codeql-action/init@v4 |
| 59 | + with: |
| 60 | + languages: ${{ matrix.language }} |
| 61 | + build-mode: ${{ matrix.build-mode }} |
| 62 | + queries: security-and-quality |
| 63 | + config: | |
| 64 | + paths-ignore: |
| 65 | + - '**/src/test/**' |
| 66 | + - '**/src/it/**' |
| 67 | + - '**/*.min.js' |
| 68 | + - '**/node_modules/**' |
| 69 | + - '**/target/**' |
| 70 | + - '**/test-output/**' |
| 71 | + - 'openidm-ui/extlib/**' |
| 72 | + - 'e2e/**' |
| 73 | +
|
| 74 | + - name: Perform CodeQL Analysis |
| 75 | + uses: github/codeql-action/analyze@v4 |
| 76 | + with: |
| 77 | + category: "/language:${{ matrix.language }}" |
0 commit comments