Skip to content

fix: isolate test count JSON output (#21) #23

fix: isolate test count JSON output (#21)

fix: isolate test count JSON output (#21) #23

Workflow file for this run

name: Security
on:
pull_request:
push:
branches: [main]
schedule:
- cron: "17 3 * * 1"
workflow_dispatch:
permissions:
contents: read
jobs:
dependency-review:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
vulnerability-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with: {go-version: stable, cache: false}
- run: .github/scripts/check-all-modules.sh
secret-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: {fetch-depth: 0}
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with: {go-version: stable, cache: false}
- run: |
mkdir -p "$RUNNER_TEMP/bin"
GOBIN="$RUNNER_TEMP/bin" go install github.com/zricethezav/gitleaks/v8@v8.30.1
echo "$RUNNER_TEMP/bin" >> "$GITHUB_PATH"
- run: gitleaks git --log-opts="--all" --redact --no-banner
sbom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with: {go-version: stable, cache: false}
- run: .github/scripts/generate-sboms.sh "$RUNNER_TEMP/sbom"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with: {name: cyclonedx-sbom, path: '${{ runner.temp }}/sbom/*.cdx.json', if-no-files-found: error}