Skip to content

Commit

Permalink
ci: Update GitHub Actions for security scanning, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelespinoza committed Mar 5, 2022
1 parent 8995fc8 commit 49cc201
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ jobs:
verbose: true
- name: Teardown
run: make -f ci.Makefile ci-cassandra4-down
security_scan:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Run gosec
uses: securego/gosec@master
with:
args: . ./internal/... ./drivers/cassandra/...
9 changes: 9 additions & 0 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,12 @@ jobs:
verbose: true
- name: Teardown
run: make -f ci.Makefile ci-mysql8-down
security_scan:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Run gosec
uses: securego/gosec@master
with:
args: . ./internal/... ./drivers/mysql/...
9 changes: 9 additions & 0 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ jobs:
verbose: true
- name: Teardown
run: make -f ci.Makefile ci-postgres13-down
security_scan:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Run gosec
uses: securego/gosec@master
with:
args: . ./internal/... ./drivers/postgres/...
9 changes: 9 additions & 0 deletions .github/workflows/sqlite3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ jobs:
verbose: true
- name: Teardown
run: make -f ci.Makefile ci-sqlite3-down
security_scan:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Run gosec
uses: securego/gosec@master
with:
args: . ./internal/... ./drivers/sqlite3/...
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ source code lines too long. More lines is fine with the exception of
declarations of exported identifiers; they should be on one line, otherwise the
generated godoc looks weird. There are also tests, those should pass.

The GitHub Actions run a security scanner on all of the source code using
[gosec](https://github.com/securego/gosec). There should be no rule violations
here. The Makefile provides some convenience targets if you want to run `gosec`
on your development machine.

## tests

Docker and docker-compose are used to create environments and run the tests
Expand Down

0 comments on commit 49cc201

Please sign in to comment.