Skip to content

Commit

Permalink
ci: refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
npdgm committed Dec 30, 2024
1 parent 389e526 commit a38b6ad
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 34 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/govulncheck.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Security Scans

on:
workflow_dispatch:
workflow_call:
pull_request_target:
schedule:
- cron: "0 8 * * *"

jobs:
dependency-review:
name: Dependency Review
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
name: Checkout code

- name: Run dependency review
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0

govulncheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
name: Checkout code

- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
check-latest: true

- name: Install govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run govulncheck
run: |
govulncheck ./...
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Tests

on:
workflow_dispatch:
workflow_call:
pull_request_target:

permissions:
Expand All @@ -18,9 +19,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Dependency Review
uses: actions/dependency-review-action@v4

- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
Expand Down Expand Up @@ -64,8 +62,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Run hadolint
id: hadolint
Expand Down

0 comments on commit a38b6ad

Please sign in to comment.