Cfg: Add ImportCallback
to allow caller inspect import status
#404
Workflow file for this run
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: PR Check | |
on: [pull_request] | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.22 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: make test | |
run: | | |
make test | |
gosec: | |
name: gosec | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
- name: Run Gosec Security Scanner | |
# This is due to https://github.com/securego/gosec/issues/1105 | |
# Per https://github.com/securego/gosec/issues/1105#issuecomment-1948225619, the issue occurs since 2.19.0. | |
# The commit that updates the GH action to 2.19.0 is d13d7dac9b7e2b40e86be5b830d297816376f1db | |
# It's parent commit is 26e57d6b340778c2983cd61775bc7e8bb41d002a | |
uses: securego/gosec@26e57d6b340778c2983cd61775bc7e8bb41d002a | |
with: | |
args: './...' | |
depscheck: | |
name: depscheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.22 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: make depscheck | |
run: | | |
make depscheck |