Skip to content

ci: add security scan #5

ci: add security scan

ci: add security scan #5

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
id-token: write
jobs:
lint:
name: Lint and Format Check
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
security:

Check failure on line 31 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 31, Col: 1): Unexpected value 'security'
name: Security Scanning
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: securego/gosec-action@v1
with:
args: "./..." # Scan all packages
- name: Upload Security Report
uses: actions/upload-artifact@v3
with:
name: gosec-report
path: gosec.json