name: Security
on:
  push:
    branches:
      - master
  pull_request:
jobs:
  test:
    strategy:
      matrix:
        go-version: [1.20.x]
        platform: [ubuntu-latest]
    runs-on: ${{ matrix.platform }}
    env:
      GO111MODULE: on
    steps:
      - uses: actions/checkout@v6
      - name: Run Gosec Security Scanner
        uses: securego/gosec@v2.22.11
        with:
          args: '-exclude=G103,G104,G304,G402 ./...'
