mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
add ci security check
This commit is contained in:
parent
54c772a265
commit
1cf2ee4806
1 changed files with 7 additions and 1 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -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 .
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue