/
githubmirror
/
netty
Обзор
Документация
Войти
/
githubmirror
/
netty
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.2
.github/workflows/codeql-analysis.yml
86 строк
3 KB
Chris Vest
update/cleanup codeql workflow (#15683) (#15685)
19 сен 2025, 08:50
Не верифицирован
19 сен 2025, 08:50
8bfdae0
Код
Авторство
О чём код?
# ---------------------------------------------------------------------------- # Copyright 2021 The Netty Project # # The Netty Project licenses this file to you under the Apache License, # version 2.0 (the "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # ---------------------------------------------------------------------------- name: "CodeQL" on: push: branches: ["4.1", "4.2"] pull_request: # The branches below must be a subset of the branches above branches: ["4.1", "4.2"] schedule: - cron: '0 13 * * 3' env: MAVEN_OPTS: -Xmx6g -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryhandler.count=5 -Dmaven.wagon.httpconnectionManager.ttlSeconds=240 permissions: contents: read security-events: write # Cancel running jobs when a new push happens to the same branch as otherwise it will # tie up too many resources without providing much value. concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: analyze: name: Analyze runs-on: ubuntu-latest strategy: fail-fast: false matrix: # Override automatic language detection by changing the below list # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] language: [ 'java', 'cpp' ] steps: - name: Checkout repository uses: actions/checkout@v5 - name: Cache local Maven repository uses: actions/cache@v4 continue-on-error: true with: path: ~/.m2/repository key: cache-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | cache-maven-${{ hashFiles('**/pom.xml') }} cache-maven- - name: Setup Java uses: actions/setup-java@v5 with: distribution: 'zulu' java-version: '11' - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: tools: linked build-mode: manual languages: ${{ matrix.language }} - name: Install tools / libraries run: sudo apt-get update && sudo apt-get -y install autoconf automake libtool make tar cmake perl ninja-build git cargo - name: Compile project run: ./mvnw -B -ntp clean package -DskipTests=true -DskipH3Spec=true - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3