Skip to content

Commit

Permalink
ci: add nancy job
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Feb 19, 2024
1 parent a2ddb75 commit 761e54f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/nancy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Go Nancy

on:
# Scan changed files in PRs (diff-aware scanning):
pull_request: {}
# Scan on-demand through GitHub Actions interface:
workflow_dispatch: {}
# Scan mainline branches and report all findings:
push:
branches: ["master"]

jobs:
build:
strategy:
matrix:
go-version: [1.21.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Set up Go 1.x in order to write go.list file
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: WriteGoList
run: go list -json -m all > go.list

- name: Nancy
uses: sonatype-nexus-community/nancy-github-action@main

0 comments on commit 761e54f

Please sign in to comment.