Merge pull request #683 from fluxcd/dependabot/github_actions/ci-a24f… #1373
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: scan | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '18 10 * * 3' | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for codeQL to write security events | |
jobs: | |
fossa: | |
name: FOSSA | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Run FOSSA scan and upload build data | |
uses: fossa-contrib/fossa-action@cdc5065bcdee31a32e47d4585df72d66e8e941c2 # v3.0.0 | |
with: | |
# FOSSA Push-Only API Token | |
fossa-api-key: 5ee8bf422db1471e0bcf2bcb289185de | |
github-token: ${{ github.token }} | |
codeql: | |
name: CodeQL | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Go | |
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version: 1.23.x | |
cache-dependency-path: | | |
**/go.sum | |
**/go.mod | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@8a93837afdf1873301a68d777844b43e98cd4313 # v3.27.8 | |
with: | |
languages: go | |
# xref: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | |
# xref: https://codeql.github.com/codeql-query-help/go/ | |
queries: security-and-quality | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@8a93837afdf1873301a68d777844b43e98cd4313 # v3.27.8 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@8a93837afdf1873301a68d777844b43e98cd4313 # v3.27.8 |