diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 5d931bc..186e1e9 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -9,16 +9,24 @@ on: permissions: id-token: write + actions: read contents: read + security-events: write jobs: run-tests: name: Run Tests runs-on: ubuntu-latest + steps: - name: Check out source code uses: actions/checkout@v4 + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: javascript + - uses: azure/login@v1 with: client-id: ${{ secrets.CLIENT_ID }} @@ -37,13 +45,22 @@ jobs: SUBSCRIPTION_ID: ${{ secrets.SUBSCRIPTION_ID }} run: npm test + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + run-tests-edge: name: Run Tests (Edge) runs-on: ubuntu-latest + steps: - name: Check out source code uses: actions/checkout@v4 + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: javascript + - name: Installing Az CLI Edge build run: | cd ../.. @@ -76,6 +93,9 @@ jobs: SUBSCRIPTION_ID: ${{ secrets.SUBSCRIPTION_ID }} run: npm test + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + execute-action: name: Execute Action runs-on: ${{ matrix.os }}