Skip to content

Commit

Permalink
Do not mirror tests and examples from upstream
Browse files Browse the repository at this point in the history
RHTAP-2366

This is to reduce the number of false positive results from SAST scans.

Signed-off-by: Adam Cmiel <[email protected]>
  • Loading branch information
chmeliik committed Jul 11, 2024
1 parent 33d06f3 commit f0d4b33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/generate-downstream.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
set -o errexit -o nounset -o pipefail

# enable recursive globbing with **
shopt -s globstar

SCRIPTDIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
source "$SCRIPTDIR/lib.sh"

Expand Down Expand Up @@ -63,6 +66,9 @@ trap 'git checkout - >/dev/null' EXIT
git rm -r .github/
git commit -s -m "Remove unwanted CI setup"

git rm -r -- examples **/test-fixtures **/*_test.go
git commit -s -m "Remove fluff to avoid SAST false positives"

apply_midstream_changes "$MIDSTREAM_BRANCH"
git commit -s -m "Apply Red Hat specific modifications"

Expand Down

0 comments on commit f0d4b33

Please sign in to comment.