Skip to content

Commit

Permalink
Added vulnerability check and dependabot workflows (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro authored Jan 20, 2025
1 parent 82bd50d commit a9d7634
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 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
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ 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

Expand Down
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 a9d7634

Please sign in to comment.