codeql-analysis.yml
This file
Path
.github/workflows/codeql-analysis.yml
52 lines · 1.5 KiB · YAML
Last changed by
[actions] fix workflow permissions; add codeQLJordan Harbandbefore adoption630a01f
History of this fileTake it
[actions] fix workflow permissions; add codeQLJordan Harbandbefore adoption630a01f
lines 1–52why, one step back1name: "Code scanning - action"23on:4 push:5 pull_request:6 schedule:7 - cron: '0 17 * * 4'89permissions:10 contents: read1112jobs:13 CodeQL-Build:1415 # CodeQL runs on ubuntu-latest and windows-latest16 permissions:17 actions: read # for github/codeql-action/init to get workflow details18 contents: read # for actions/checkout to fetch code19 security-events: write # for github/codeql-action/autobuild to send a status report20 runs-on: ubuntu-latest2122 steps:23 - name: Checkout repository24 uses: actions/checkout@v625 with:26 persist-credentials: false2728 # Initializes the CodeQL tools for scanning.29 - name: Initialize CodeQL30 uses: github/codeql-action/init@v431 # Override language selection by uncommenting this and choosing your languages32 # with:33 # languages: go, javascript, csharp, python, cpp, java3435 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).36 # If this step fails, then you should remove it and run the build manually (see below)37 - name: Autobuild38 uses: github/codeql-action/autobuild@v43940 # ℹ️ Command-line programs to run using the OS shell.41 # 📚 https://git.io/JvXDl4243 # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines44 # and modify them (or add more) to build your code if your project45 # uses a compiled language4647 #- run: |48 # make bootstrap49 # make release5051 - name: Perform CodeQL Analysis52 uses: github/codeql-action/analyze@v4