From 3670c729c0b5a0a574b412df8512d5a867049f8b Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Mon, 26 Apr 2021 08:43:28 -0700 Subject: [PATCH 1/2] Actions: Use the main branch of the codeql action This commit switches to the bleeding edge, main branch of the codeql action. This helps us test the action before merging all of the new changes into main, which occurs roughly once a week. If there are commits that introduce bugs in codeql-action, then we will be more likely to catch it before releasing to the world if we are using it in this extension. --- .github/workflows/codeql-analysis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b86009ef6da9..370d2f14881c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -25,7 +25,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@main # Override language selection by uncommenting this and choosing your languages with: languages: csharp @@ -34,7 +34,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@main # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -48,4 +48,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@main From 0e53ad33f65b7e3b72d8ebd713bab3d8117f3963 Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Mon, 26 Apr 2021 10:53:29 -0700 Subject: [PATCH 2/2] Actions: Add permissions block to code scanning workflow --- .github/workflows/codeql-analysis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 370d2f14881c..3cd94cb6215c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -19,6 +19,11 @@ jobs: runs-on: ubuntu-latest + permissions: + contents: read + security_events: write + pull_requests: read + steps: - name: Checkout repository uses: actions/checkout@v2