Skip to content

Commit 631f4fc

Browse files
committed
feat: add gosec to run static code analysis workflow
This commit introduces a new GitHub Actions workflow to run 'gosec' for static code analysis of Go modules. The workflow will automatically scan the source code for potential security issues and improve the security posture of the repository. References: - Gosec Documentation: https://github.com/securego/gosec - Related Issue: #22 Signed-off-by: atilsensalduz <atil.sensalduz@gmail.com>
1 parent cbf88cf commit 631f4fc

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/gosec.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Run Gosec
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
env:
13+
GO111MODULE: on
14+
steps:
15+
- name: Checkout Source
16+
uses: actions/checkout@v4
17+
- name: Run Gosec Security Scanner
18+
uses: securego/gosec@master
19+
with:
20+
args: ./...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- id: govulncheck
8-
uses: golang/govulncheck-action@v1
8+
uses: golang/govulncheck-action@v1

0 commit comments

Comments
 (0)