feat: flag deprecated models and redesign admin models table (#315) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CodeQL | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| pull_request: | |
| branches: | |
| - develop | |
| schedule: | |
| - cron: "17 3 * * 1" | |
| permissions: | |
| contents: read | |
| security-events: write | |
| actions: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| analyze: | |
| name: Analyze (${{ matrix.language }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: python | |
| build-mode: none | |
| - language: javascript-typescript | |
| build-mode: none | |
| - language: actions | |
| build-mode: none | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| queries: +security-extended,security-and-quality | |
| - name: Perform CodeQL analysis | |
| uses: github/codeql-action/analyze@v4 | |
| with: | |
| category: "/language:${{ matrix.language }}" | |
| codeql: | |
| name: CodeQL gate | |
| runs-on: ubuntu-latest | |
| if: always() | |
| needs: | |
| - analyze | |
| steps: | |
| - name: Check CodeQL analysis jobs | |
| env: | |
| ANALYZE_RESULT: ${{ needs.analyze.result }} | |
| run: | | |
| case "$ANALYZE_RESULT" in | |
| success|skipped) | |
| echo "CodeQL analyze: $ANALYZE_RESULT" | |
| ;; | |
| *) | |
| echo "::error::CodeQL analyze failed with result: $ANALYZE_RESULT" | |
| exit 1 | |
| ;; | |
| esac |