Skip to content

Commit

Permalink
Merge pull request #117 from kevincobain2000/develop
Browse files Browse the repository at this point in the history
(ci) gosec issues
  • Loading branch information
kevincobain2000 committed Aug 22, 2023
2 parents 0241c56 + f1834c5 commit eb5a14c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/coveritup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:

- name: Install Tools
run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest
go install github.com/axw/gocov/gocov@latest
go install github.com/AlekSi/gocov-xml@latest
- name: Test
Expand Down Expand Up @@ -53,6 +54,14 @@ jobs:
with:
type: go-mod-dependencies

- name: Number of GO Sec issues
run: |
echo SCORE=`gosec -no-fail --quiet ./...|grep Issues | tail -1 |awk '{print $3}'` >> "$GITHUB_ENV"
- uses: kevincobain2000/action-coveritup@v1
with:
type: go-sec-issues

- uses: kevincobain2000/action-coveritup@v1
with:
pr_comment: true
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ jobs:
with:
version: ${{ matrix.go-version }}
- name: Test
run: go test -race -v ./... -count=1 -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
run: go test -race -v ./... -count=1
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@

# Build Status

| Branch | Status |
|:----------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| master | ![Test](https://github.com/kevincobain2000/gobrew/workflows/Test/badge.svg?branch=master) |
| Coverage | [![coveritup](https://coveritup.app/embed?org=kevincobain2000&repo=gobrew&branch=master&type=coverage)](https://coveritup.app/kevincobain2000/gobrew) |
| Binary Size | [![coveritup](https://coveritup.app/embed?org=kevincobain2000&repo=gobrew&branch=master&type=go-binary-size)](https://coveritup.app/kevincobain2000/gobrew) |
| Mod Dependecies | [![coveritup](https://coveritup.app/embed?org=kevincobain2000&repo=gobrew&branch=master&type=go-mod-depdendencies)](https://coveritup.app/kevincobain2000/gobrew) |
| Branch | Status |
|:----------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| master | ![Test](https://github.com/kevincobain2000/gobrew/workflows/Test/badge.svg?branch=master) |
| Coverage | [![coveritup](https://coveritup.app/embed?org=kevincobain2000&repo=gobrew&branch=master&type=coverage)](https://coveritup.app/kevincobain2000/gobrew) |
| Binary Size | [![coveritup](https://coveritup.app/embed?org=kevincobain2000&repo=gobrew&branch=master&type=go-binary-size)](https://coveritup.app/kevincobain2000/gobrew) |
| Mod Dependecies | [![coveritup](https://coveritup.app/embed?org=kevincobain2000&repo=gobrew&branch=master&type=go-mod-dependencies)](https://coveritup.app/kevincobain2000/gobrew) |



Expand Down

0 comments on commit eb5a14c

Please sign in to comment.