go deps scan #924
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: go deps scan | |
on: | |
schedule: | |
- cron: "0 3 * * *" # 毎日の正午に実行 ( 12+JST = 3+UTC ) | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: ./command | |
jobs: | |
scan-deps: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
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: '1.18.X' | |
- name: WriteGoList | |
run: go list -json -deps > ../go.list | |
- name: Nancy | |
uses: sonatype-nexus-community/nancy-github-action@main | |
with: | |
nancyCommand: sleuth --loud |