Skip to content

Commit

Permalink
fix ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Jul 14, 2024
1 parent da46457 commit 8fe32e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:
# Care when merging pull requests.
# In any case, all CI/CD jobs can be peformed locally.
#
- run: "mage snyk"
- run: "mage govulncheck snyk"
env:
SNYK_TOKEN: "${{ secrets.SNYK_TOKEN }}"
6 changes: 3 additions & 3 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ var Default = Test
// Govulncheck runs govulncheck.
func Govulncheck() error { return mageextras.Govulncheck("./...") }

// SnykTest runs Snyk SCA.
func SnykTest() error { return mageextras.SnykTest() }
// Snyk runs Snyk SCA.
func Snyk() error { return mageextras.SnykTest() }

// DockerScout runs a Docker security audit.
func DockerScout() error { return mageextras.DockerScout("-e", "mcandre/tug-demo") }

// Audit runs security audits.
func Audit() error {
mg.Deps(Govulncheck)
mg.Deps(SnykTest)
mg.Deps(Snyk)
return DockerScout()
}

Expand Down

0 comments on commit 8fe32e5

Please sign in to comment.