Skip to content

deps: bump github.com/basecamp/hey-sdk/go from 0.35.1 to 0.36.0 #2154

deps: bump github.com/basecamp/hey-sdk/go from 0.35.1 to 0.36.0

deps: bump github.com/basecamp/hey-sdk/go from 0.35.1 to 0.36.0 #2154

Workflow file for this run

name: Security
on:
workflow_dispatch:
workflow_call:
push:
branches: [main]
# No branch filter on pull_request: Secret scanning is a required check on
# main, and a stacked PR that is auto-retargeted to main after its parent
# merges gets no new pull_request event — the check must already exist on
# the head SHA from its ordinary PR runs.
pull_request:
schedule:
- cron: '0 6 * * 1'
permissions: {}
jobs:
secrets:
name: Secret scanning
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Install gitleaks
run: |
curl -sSfLo gitleaks_8.21.2_linux_x64.tar.gz https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_linux_x64.tar.gz
curl -sSfLo checksums.txt https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_checksums.txt
grep 'gitleaks_8.21.2_linux_x64.tar.gz' checksums.txt | sha256sum -c -
tar -xzf gitleaks_8.21.2_linux_x64.tar.gz
sudo mv gitleaks /usr/local/bin/
- name: Run gitleaks
run: gitleaks detect --source . --verbose
trivy:
name: Trivy vulnerability scan
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
scan-type: fs
format: sarif
output: trivy-results.sarif
- uses: github/codeql-action/upload-sarif@1fc58d04a4d4374f921bdac573c3811c240f9c26 # v4.39.2
with:
sarif_file: trivy-results.sarif
category: trivy
gosec:
name: Go security analysis
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: securego/gosec@5eb1d104ef85ff2c905c877eb600e8c1dee33a22 # v2.30.0
env:
# v2.29.0 cannot read Go 1.27.2's export data; see GOSEC_GOTOOLCHAIN in
# the Makefile, and drop both with the next gosec release.
GOTOOLCHAIN: go1.27.1
with:
args: -fmt sarif -out gosec-results.sarif ./...
- uses: github/codeql-action/upload-sarif@1fc58d04a4d4374f921bdac573c3811c240f9c26 # v4.39.2
if: ${{ always() && hashFiles('gosec-results.sarif') != '' }}
with:
sarif_file: gosec-results.sarif
category: gosec
dependency-review:
name: Dependency review
runs-on: ubuntu-latest
permissions:
contents: read
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
continue-on-error: true # requires GitHub Advanced Security (dependency graph)