diff --git a/.github/workflows/security-analysis.yml b/.github/workflows/security-analysis.yml index 1d40c68a..e5a29d69 100644 --- a/.github/workflows/security-analysis.yml +++ b/.github/workflows/security-analysis.yml @@ -1,13 +1,18 @@ name: Code Security Testing on: + push: + branches: + - main pull_request: branches: - main - - release schedule: - cron: "0 20 * * 5" +permissions: + security-events: write + concurrency: group: security-${{ github.ref }} cancel-in-progress: true @@ -21,7 +26,7 @@ jobs: - uses: actions/checkout@v3 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: csharp @@ -34,4 +39,4 @@ jobs: run: dotnet build --configuration Release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3