Various updates and enhancements #2
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: Code Scan | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
# random HH:MM to avoid a load spike on GitHub Actions at 00:00 | |
- cron: '4 1 * * *' | |
permissions: {} | |
jobs: | |
Lint: | |
permissions: | |
contents: read | |
uses: bytemare/workflows/.github/workflows/golangci-lint.yml@232148ec449718765bacb8bd4684de41f15b8258 | |
with: | |
config-path: ./.github/.golangci.yml | |
scope: ./... | |
Analyze: | |
permissions: | |
contents: read | |
uses: bytemare/workflows/.github/workflows/scan-go.yml@232148ec449718765bacb8bd4684de41f15b8258 | |
with: | |
sonar-configuration: .github/sonar-project.properties | |
coverage-output-file: coverage.out | |
secrets: | |
github: ${{ secrets.GITHUB_TOKEN }} | |
sonar: ${{ secrets.SONAR_TOKEN }} | |
codecov: ${{ secrets.CODECOV_TOKEN }} | |
semgrep: ${{ secrets.SEMGREP_APP_TOKEN }} |