Run gosec
This commit is contained in:
22
.gitea/workflows/gosec.yaml
Normal file
22
.gitea/workflows/gosec.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: Run Gosec
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: gitea/runner-images:ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Source
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Run Gosec Security Scanner
|
||||||
|
uses: securego/gosec@master
|
||||||
|
with:
|
||||||
|
args: ./...
|
@@ -1,12 +1,15 @@
|
|||||||
name: test
|
name: Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-default:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: gitea/runner-images:ubuntu-latest
|
image: gitea/runner-images:ubuntu-latest
|
||||||
@@ -77,4 +80,5 @@ jobs:
|
|||||||
if [ -f vault.pid ]; then
|
if [ -f vault.pid ]; then
|
||||||
kill $(cat vault.pid) 2>/dev/null || true
|
kill $(cat vault.pid) 2>/dev/null || true
|
||||||
rm -f vault.pid
|
rm -f vault.pid
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user