diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a7ce63..ddb65f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,4 +33,4 @@ jobs: echo BING_KEY=${{ secrets.BING_KEY }} >> .env - run: npm run test env: - CI: true \ No newline at end of file + CI: true diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..7082019 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,49 @@ +name: "CodeQL" + +on: + push: + branches: [main, dev, certification] + pull_request: + branches: [main, dev, certification] + schedule: + - cron: '0 0 * * 3' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + timeout-minutes: 60 + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: ['typescript'] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 2 + + - name: Use Node.js 18 + uses: actions/setup-node@v2 + with: + node-version: 18.x + + - name: Install Dependencies + run: npm ci + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3