Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hutch79 committed Aug 20, 2024
1 parent 97d1929 commit 1eaa870
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

0 comments on commit 1eaa870

Please sign in to comment.