-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,20 +37,20 @@ jobs: | |
|
||
- name: Build | ||
run: dotnet build --no-restore | ||
|
||
- name: Test | ||
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" | ||
|
||
- name: Find coverage reports | ||
id: find-reports | ||
run: | | ||
echo "::set-output name=paths::$(find ${{ github.workspace }} -name "coverage.cobertura.xml")" | ||
- name: Send coverage-reports to Codacy | ||
uses: codacy/[email protected] | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
coverage-reports: ${{ steps.find-reports.outputs.paths }} | ||
# | ||
# - name: Test | ||
# run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" | ||
# | ||
# - name: Find coverage reports | ||
# id: find-reports | ||
# run: | | ||
# echo "::set-output name=paths::$(find ${{ github.workspace }} -name "coverage.cobertura.xml")" | ||
# | ||
# - name: Send coverage-reports to Codacy | ||
# uses: codacy/[email protected] | ||
# with: | ||
# project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
# coverage-reports: ${{ steps.find-reports.outputs.paths }} | ||
|
||
- name: Configure PostgreSQL Credentials | ||
run: | | ||
|
@@ -69,11 +69,10 @@ jobs: | |
- name: ZAP Scan | ||
uses: zaproxy/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
docker_name: 'ghcr.io/zaproxy/zaproxy:stable' # Stable version of ZAP | ||
target: 'https://localhost:7129/' # Change to your application's URL | ||
rules_file_name: '.zap/rules.tsv' # Uncomment if using custom rules | ||
cmd_options: '-a' # Aggressive scanning enabled | ||
#token: ${{ secrets.GITHUB_TOKEN }} | ||
docker_name: 'ghcr.io/zaproxy/zaproxy:bare' | ||
target: 'https://localhost:7129/' | ||
cmd_options: '-a -f openapi' # Aggressive scanning enabled | ||
|
||
- name: Stop application | ||
run: pkill dotnet |