From 8da0d0f2998866f9923e9210be6bc8b2f3cb1f7a Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 8 Sep 2022 12:34:28 +0800 Subject: [PATCH] :wrench: Chore: update codeql-action workflow to v2 --- .github/workflows/codeql-analysis.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f9acd5a0..bfb3da73 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -12,9 +12,12 @@ name: "CodeQL" on: + push: + branches: + - master pull_request: - # The branches below must be a subset of the branches above - branches: [ master ] + branches: + - master schedule: - cron: '45 0 * * 1' @@ -33,11 +36,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -48,7 +51,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@v2 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -62,4 +65,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2