diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 0079a855bd0..208642aec16 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,16 +14,20 @@ name: "CodeQL" on: push: branches: [ master ] + paths-ignore: + - '.github/**' pull_request: # The branches below must be a subset of the branches above branches: [ master ] + paths-ignore: + - '.github/**' schedule: - cron: '23 19 * * 2' jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: k8s strategy: fail-fast: false @@ -35,17 +39,17 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Java JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: - java-version: '11' + java-version: '17' distribution: 'adopt' # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -56,7 +60,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@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -70,4 +74,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3