Skip to content

fix(httpclient): honour Idempotency-Key, and say where net/http alrea… #388

fix(httpclient): honour Idempotency-Key, and say where net/http alrea…

fix(httpclient): honour Idempotency-Key, and say where net/http alrea… #388

Workflow file for this run

# Security scanning workflow

Check failure on line 1 in .github/workflows/security.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/security.yml

Invalid workflow file

(Line: 60, Col: 9): Unexpected value 'working-directory'
name: Security
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
# Run weekly on Monday at 00:00 UTC
- cron: "0 0 * * 1"
permissions:
contents: read
security-events: write
jobs:
# Dependency vulnerability scanning
govulncheck:
name: Go Vulnerability Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: 'go.mod'
cache: true
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run govulncheck
run: |
govulncheck ./...
cd tools && govulncheck ./...
# Static analysis with gosec
gosec:
name: Security Scan (gosec)
permissions:
security-events: write
actions: read
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: securego/gosec@9e75c0576c9878035d4221392108d458abe10fc3 # v2.28.0
with:
# we let the report trigger content trigger a failure using the GitHub Security features.
args: '-no-fail -fmt sarif -out results.sarif ./...'
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@486fec2a3ea2626afcd8c7e9208b4f515078dd7e # v2.23.6
with:
# Path to SARIF file relative to the root of the repository
sarif_file: results.sarif
- name: Run gosec on tools
uses: securego/gosec@9e75c0576c9878035d4221392108d458abe10fc3 # v2.28.0
with:
args: '-no-fail -fmt sarif -out results-tools.sarif ./...'
working-directory: tools
- name: Upload SARIF file for tools
uses: github/codeql-action/upload-sarif@486fec2a3ea2626afcd8c7e9208b4f515078dd7e # v2.23.6
with:
sarif_file: tools/results-tools.sarif
category: tools
# Dependency review for PRs
dependency-review:
name: Dependency Review
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
fail-on-severity: high