github.com/argoproj/argo-cd/v3@v3.2.1/.github/workflows/codeql.yml (about) 1 name: "Code scanning - action" 2 3 on: 4 push: 5 # Secrets aren't available for dependabot on push. https://docs.github.com/en/enterprise-cloud@latest/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/troubleshooting-the-codeql-workflow#error-403-resource-not-accessible-by-integration-when-using-dependabot 6 branches-ignore: 7 - 'dependabot/**' 8 - 'cherry-pick-*' 9 pull_request: 10 schedule: 11 - cron: '0 19 * * 0' 12 13 concurrency: 14 group: ${{ github.workflow }}-${{ github.ref }} 15 cancel-in-progress: true 16 17 permissions: 18 contents: read 19 20 jobs: 21 CodeQL-Build: 22 permissions: 23 actions: read # for github/codeql-action/init to get workflow details 24 contents: read # for actions/checkout to fetch code 25 security-events: write # for github/codeql-action/autobuild to send a status report 26 if: github.repository == 'argoproj/argo-cd' || vars.enable_codeql 27 28 # CodeQL runs on ubuntu-latest and windows-latest 29 runs-on: ubuntu-22.04 30 steps: 31 - name: Checkout repository 32 uses: actions/checkout@8410ad0602e1e429cee44a835ae9f77f654a6694 # v4.0.0 33 34 # Use correct go version. https://github.com/github/codeql-action/issues/1842#issuecomment-1704398087 35 - name: Setup Golang 36 uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 37 with: 38 go-version-file: go.mod 39 40 # Initializes the CodeQL tools for scanning. 41 - name: Initialize CodeQL 42 uses: github/codeql-action/init@8fcfedf57053e09257688fce7a0beeb18b1b9ae3 # v2.17.2 43 # Override language selection by uncommenting this and choosing your languages 44 # with: 45 # languages: go, javascript, csharp, python, cpp, java 46 47 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 48 # If this step fails, then you should remove it and run the build manually (see below) 49 - name: Autobuild 50 uses: github/codeql-action/autobuild@8fcfedf57053e09257688fce7a0beeb18b1b9ae3 # v2.17.2 51 52 # âšī¸ Command-line programs to run using the OS shell. 53 # đ https://git.io/JvXDl 54 55 # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines 56 # and modify them (or add more) to build your code if your project 57 # uses a compiled language 58 59 #- run: | 60 # make bootstrap 61 # make release 62 63 - name: Perform CodeQL Analysis 64 uses: github/codeql-action/analyze@8fcfedf57053e09257688fce7a0beeb18b1b9ae3 # v2.17.2