Skip to content

build(deps): Bump actions/checkout from 6.0.1 to 6.0.2 in the development-dependencies group #112

build(deps): Bump actions/checkout from 6.0.1 to 6.0.2 in the development-dependencies group

build(deps): Bump actions/checkout from 6.0.1 to 6.0.2 in the development-dependencies group #112

Workflow file for this run

name: Vulnerability scans
permissions: read-all
# description: |
# Scans the go dependencies repos for vulnerabilities
# whenever we change the downloaded version.
#
# This prevents from upgrading to a version which is exposed to known vulnerabilities.
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
analysis:
name: Vulnerability scan on downloaded tool
runs-on: ubuntu-latest
strategy:
matrix:
include:
- tool: gotestsum
github_repo: gotestyourself/gotestsum
- tool: go-junit-report
github_repo: jstemmer/go-junit-report
- tool: go-ctrf-json-reporter
github_repo: ctrf-io/go-ctrf-json-reporter
permissions:
contents: read
steps:
-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
-
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version: stable
check-latest: true
cache: true
-
name: Resolve version
id: resolve-version
shell: bash
env:
VERSION_FILE: versions.yml
TOOL: ${{ matrix.tool }}
run: |
mkdir -p tools
VERSION=$(./get-tool-version.sh "${TOOL}")
if [[ -z "${VERSION}" ]] ; then
echo "::error::Could not resolve version for tool ${TOOL}"
exit 1
fi
echo "::notice title=Version:${VERSION}"
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: ${{ matrix.github_repo }}
ref: ${{ steps.resolve-version.outputs.version }}
path: tools/${{ matrix.tool }}
-
name: Vulnerability scan by trivy
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # v0.33.1
with:
scan-type: repo
format: table
scanners: vuln,secret
input: tools/${{ matrix.tool }}
-
name: Vulnerability scan by govulncheck
id: govulncheck
uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4
with:
repo-checkout: false
output-format: text
work-dir: tools/${{ matrix.tool }}
vulnerabily-check:
name: Vulnerability scans passed
runs-on: ubuntu-latest
needs: [analysis]
permissions:
contents: read
steps:
-
name: All scans passed
run: |
echo "Alll vulnerability scans passed"
echo "::notice title=Scans passed"