Add Repository Security Advisories APIs #2022
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
on: [push, pull_request] | |
name: linter | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
lint: | |
strategy: | |
matrix: | |
go-version: [1.x] | |
platform: [ubuntu-latest] | |
# golangci-lint will only process a single module, so we need to call it | |
# separately for each module in the repo. We dont lint example/newreposecretwithlibsodium | |
# since that needs libsodium to run. | |
working-directory: | |
- "" | |
# - example # Fails with "no go files to analyze" | |
- scrape | |
- update-urls | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: golangci-lint ${{ matrix.working-directory }} | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
working-directory: ${{ matrix.working-directory}} | |
args: --verbose |