Skip to content

ci: update staticcheck and go fmt steps #8

ci: update staticcheck and go fmt steps

ci: update staticcheck and go fmt steps #8

Workflow file for this run

name: CI
permissions:
actions: read
contents: read
security-events: write
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
security:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: -no-fail -fmt sarif -out gosec-results.sarif ./...
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: gosec-results.sarif
style:
name: Style
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Run staticcheck
uses: dominikh/staticcheck-action@v1
with:
version: "latest"
- name: Check Formatting
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi