diff --git a/.github/codeql/ui-codeql-config.yml b/.github/codeql/ui-codeql-config.yml new file mode 100644 index 0000000000..62ebee5617 --- /dev/null +++ b/.github/codeql/ui-codeql-config.yml @@ -0,0 +1,3 @@ +name: "Custom CodeQL Config for UI" +paths: + - "ui/" diff --git a/.github/workflows/ui-codeql.yml b/.github/workflows/ui-codeql.yml new file mode 100644 index 0000000000..2765921cf6 --- /dev/null +++ b/.github/workflows/ui-codeql.yml @@ -0,0 +1,61 @@ +# 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. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "UI - CodeQL" + +on: + push: + branches: + - "master" + - "v4.*" + - "v5.*" + paths: + - "ui/**" + pull_request: + branches: + - "master" + - "v4.*" + - "v5.*" + paths: + - "ui/**" + schedule: + - cron: "00 12 * * *" + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: ["javascript"] + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + config-file: ./.github/codeql/ui-codeql-config.yml + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}"