add auth to all calls except login/logout (#409) #7
This file contains hidden or 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: OWASP Zap | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| owasp-zap: | |
| name: Analyze with OWASP Zap API | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Set up JDK 8 | |
| uses: actions/[email protected] | |
| with: | |
| java-version: 8 | |
| distribution: 'temurin' | |
| - name: Cache Gradle packages | |
| uses: actions/[email protected] | |
| with: | |
| path: ~/.gradle/caches | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
| restore-keys: ${{ runner.os }}-gradle | |
| - name: Run OWASP Zap | |
| run: ./gradlew :opendcs-integration-test:owaspZap --stacktrace | |
| - name: Upload Full HTML Report | |
| uses: actions/[email protected] | |
| with: | |
| name: zap_report.html | |
| path: opendcs-integration-test/build/test-results/owasp_zap/zap_report.html | |
| retention-days: 1 | |
| if-no-files-found: error | |
| - name: Trim Summary Report | |
| run: | | |
| sudo sed '/## Alert Detail/Q' opendcs-integration-test/build/test-results/owasp_zap/zap_report.md > ./zap_report_summary.md | |
| - name: Generate GitHub Job Summary | |
| uses: x-color/[email protected] | |
| with: | |
| file: ./zap_report_summary.md | |
| vars: | | |
| empty: empty |