Skip to content

Commit

Permalink
Update lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wj00037 authored Sep 14, 2024
1 parent 5e9368a commit 5a7a915
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
runs-on: [self-hosted, Linux]
steps:
- uses: actions/checkout@v4
- name: config github
env:
TOKEN: ${{ secrets.ACCESS_TOKEN }}
USER: ${{ secrets.USER_NAME }}
run: echo "machine github.com login $USER password $TOKEN" > ~/.netrc
- name: golangci-lint
uses: golangci/golangci-lint-action@master
with:
Expand All @@ -38,7 +43,11 @@ jobs:

- name: Run Gosec Security Scanner
uses: securego/gosec@master
env:
GITHUB_AUTHENTICATION_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
args: -exclude-dir api -exclude-dir tests ./...
- name: Unit tests
run: go test -race -count=1 -v ./...
run: go test -race -count=1 -v ./...
- name: cleanup
run: rm -f ~/.netrc

0 comments on commit 5a7a915

Please sign in to comment.