Skip to content

Commit

Permalink
chore: drop deprecated penetration test code (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Feb 12, 2025
1 parent 541a7b1 commit 7ed0a76
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,6 @@ inputs:
description: Seconds to wait between deployment verification attempts
default: "10"

### Deprecated
# All penetration tests have been deprecated in favour of scheduled jobs
penetration_test:
default: false
# penetration_test_fail:
# penetration_test_create_issue:
# penetration_test_token:
# penetration_test_artifact:
# penetration_test_issue:

outputs:
triggered:
description: Did a deployment trigger? [true|false]
Expand All @@ -73,10 +63,9 @@ outputs:
runs:
using: composite
steps:
# Notify about bugs and deprecations
- shell: bash
run: |
# Notify about bugs and deprecations
# Notify about bugs and/or deprecations
set -eu
# Bug mitigation - OpenShift hates images with capitals in org/repo names
Expand All @@ -87,15 +76,6 @@ runs:
exit 1
fi
# Deprecation notices
if [ ! -z ${{ inputs.penetration_test }} != "false" ]; then
echo -e "All penetration testing has been deprecated. Instead we recommend running in a scheduled job. \n"
echo -e "Please see https://github.com/zaproxy/action-full-scan for the source action.\n"
echo -e "An example of a scheduled job with ZAP penetration testing can be found here:"
echo -e " => https://github.com/bcgov/quickstart-openshift/blob/main/.github/workflows/scheduled.yml\n"
exit 1
fi
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
Expand Down

0 comments on commit 7ed0a76

Please sign in to comment.