Skip to content

Commit

Permalink
ci: add gosec for golang security scanning
Browse files Browse the repository at this point in the history
Adding gosec security scanning as a CI job
to run on each PR to ensure we are good with
security problems.

More details at https://github.com/securego/gosec

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
  • Loading branch information
Madhu-1 committed Mar 1, 2024
1 parent 328e4e5 commit c821aea
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/gosec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Run Gosec
# yamllint disable-line rule:truthy
on:
pull_request:
branches:
- devel
jobs:
tests:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...

0 comments on commit c821aea

Please sign in to comment.