mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
feat(ci): add codeql to scanner code (#1076)
This commit is contained in:
@@ -169,3 +169,39 @@ jobs:
|
|||||||
name: e2e-test-logs-${{ github.run_number }}
|
name: e2e-test-logs-${{ github.run_number }}
|
||||||
path: /tmp/rustfs.log
|
path: /tmp/rustfs.log
|
||||||
retention-days: 3
|
retention-days: 3
|
||||||
|
analyze:
|
||||||
|
name: Analyze Rust
|
||||||
|
needs: skip-check
|
||||||
|
if: needs.skip-check.outputs.should_skip != 'true'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
security-events: write
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
language: [ rust ]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: github/codeql-action/init@v4
|
||||||
|
with:
|
||||||
|
languages: ${{ matrix.language }}
|
||||||
|
ram: 6000
|
||||||
|
threads: 2
|
||||||
|
db-location: /home/runner/work/codeql_dbs
|
||||||
|
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: github/codeql-action/analyze@v4
|
||||||
|
with:
|
||||||
|
category: "/language:${{ matrix.language }}"
|
||||||
|
ram: 6000
|
||||||
|
threads: 2
|
||||||
|
- uses: github/codeql-action/upload-sarif@v4
|
||||||
|
with:
|
||||||
|
sarif_file: results.sarif
|
||||||
|
|||||||
Reference in New Issue
Block a user