This commit is contained in:
parent
0a69642bd6
commit
d26acf9ee0
2 changed files with 29 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
name: Gosec Check
|
name: GoSec Scan
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "@daily"
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
27
README.md
27
README.md
|
@ -1,3 +1,28 @@
|
||||||
# goscan
|
# goscan
|
||||||
|
|
||||||
Gosec with some stuff with actions.
|
Gosec with some stuff with actions.
|
||||||
|
|
||||||
|
## Workflow example
|
||||||
|
```yaml
|
||||||
|
name: GoSec Scan
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "@daily"
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
gosec:
|
||||||
|
name: Gosec Check
|
||||||
|
runs-on: node20-bookworm
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: https://git.shadowhosting.xyz/actions/checkout@v4
|
||||||
|
- uses: https://git.shadowhosting.xyz/actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '1.22'
|
||||||
|
- run: go mod download
|
||||||
|
- name: Run Gosec Security Scanner
|
||||||
|
uses: https://git.shadowhosting.xyz/actions/goscan@main
|
||||||
|
```
|
Loading…
Reference in a new issue