Skip to content

Commit

Permalink
Added vulnerability-check, dependabot workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Jan 22, 2025
1 parent 04f2366 commit 75dd030
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 10 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
reviewers:
- Nikita-Smirnov-Exactpro
- OptimumCode
labels:
- dependencies
schedule:
interval: daily
- package-ecosystem: github-actions
directory: /
reviewers:
- Nikita-Smirnov-Exactpro
- OptimumCode
labels:
- dependencies
schedule:
interval: daily
17 changes: 7 additions & 10 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@ jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.19

- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler && protoc --version

- name: Build sources
run: make build
go-version-file: go.mod

- name: Check sources
run: make run-test
run: make run-test
- name: Build sources
run: make build
27 changes: 27 additions & 0 deletions .github/workflows/vulnerability-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check repository for vulnerabilities

on: [push, workflow_dispatch]

jobs:
vulnerabilities:
env:
report-file: report.txt
name: Check vulnerabilities
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run check
run: govulncheck -show verbose ./... 2>&1 | tee ${{ env.report-file }}
- name: Collect report
if: always()
uses: actions/upload-artifact@v4
with:
name: 'govulncheck-report'
path: ${{ env.report-file }}
overwrite: true

0 comments on commit 75dd030

Please sign in to comment.