Files
projectdiscovery-httpx/.github/workflows/sonarcloud.yml
T
Mzack9999 db1bc2ebba Reworking favicon hash calculation (#906)
* Reworking favicon hash calculation

* removing debug code

* bumping go to 1.19

* removing automatic follow redirect

* more edge cases

* added favicon path info
2023-01-06 18:28:08 +05:30

34 lines
874 B
YAML

name: 👮🏼‍♂️ Sonarcloud
on:
pull_request:
workflow_dispatch:
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: "Set up Go"
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Run unit Tests
run: |
go test -coverprofile=./cov.out ./...
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: '-no-fail -fmt=sonarqube -out report.json ./...'
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}