add ci security check

This commit is contained in:
Ruidy 2024-09-04 16:46:38 +02:00
parent 54c772a265
commit 1cf2ee4806
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -11,6 +11,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout code
@ -34,7 +36,11 @@ jobs:
run: |
go test ./...
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...
- name: Build Docker image
run: |
docker build -t rentease .