Bump golang from ef30001
to 2e83858
in the docker-all group
#725
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: "Code security analysis" | |
on: | |
push: | |
tags: ["*"] | |
branches: ["*"] | |
pull_request: | |
branches: ["*"] | |
schedule: | |
- cron: "25 10 * * 3" | |
workflow_dispatch: | |
permissions: {} | |
jobs: | |
analyze-codeql: | |
name: "CodeQL analysis (${{ matrix.language }})" | |
runs-on: "ubuntu-latest" | |
permissions: | |
actions: "read" | |
contents: "read" | |
security-events: "write" | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["go"] | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" | |
- name: "Set up Go" | |
uses: "actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a" | |
with: | |
go-version-file: "./go.mod" | |
check-latest: true | |
- name: "Initialize CodeQL" | |
uses: "github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169" | |
with: | |
languages: "${{ matrix.language }}" | |
- name: "Autobuild" | |
uses: "github/codeql-action/autobuild@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169" | |
- name: "Perform CodeQL analysis" | |
uses: "github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169" | |
analyze-gosec: | |
name: "Gosec analysis" | |
runs-on: "ubuntu-latest" | |
permissions: | |
actions: "read" | |
contents: "read" | |
security-events: "write" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" | |
- name: "Set up Go" | |
uses: "actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a" | |
with: | |
go-version-file: "./go.mod" | |
check-latest: true | |
- name: "Perform Gosec analysis" | |
uses: "securego/gosec@d4617f51baf75f4f809066386a4f9d27b3ac3e46" | |
with: | |
args: "-no-fail -tests -fmt sarif -out ./results.sarif ./..." | |
- name: "Upload SARIF file" | |
uses: "github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169" | |
with: | |
sarif_file: "./results.sarif" |