2929 git clone https://github.com/$GITHUB_USER/zap-mgmt-scripts.git
3030 git clone https://github.com/$GITHUB_USER/zaproxy-website.git
3131
32- # Update to the latest upstream
33- cd zaproxy-website
34- git remote set-url origin https://$GITHUB_USER:[email protected] /$GITHUB_USER/zaproxy-website.git 35- git remote add upstream https://github.com/zaproxy/zaproxy-website.git
36- git checkout -B owasp-benchmark
37- git pull upstream main
38- git reset --hard upstream/main
39- git push --set-upstream origin owasp-benchmark --force
40-
4132 - name : Scan OWASP Benchmark
4233 run : |
4334 cd zap-mgmt-scripts/scans/benchmark
@@ -54,16 +45,16 @@ jobs:
5445 run : |
5546 cd zaproxy-website
5647
48+ git checkout -b owasp-benchmark
49+
5750 # Update the index to be sure git is aware of changes
5851 git update-index -q --refresh
5952 ## If there are changes: comment, commit, PR
6053 if ! git diff-index --quiet HEAD --; then
61-
54+ gh repo set-default zaproxy/zaproxy-website
55+ git remote set-url origin https://$GITHUB_USER:[email protected] /$GITHUB_USER/zaproxy-website.git 6256 git add site/data/scans/benchmark/*
63- git commit -s -m "Updated OWASP Benchmark Results"
64- git push origin
65-
66- echo ${{ secrets.ZAPBOT_TOKEN }} | gh auth login --with-token
67- gh pr create --fill
68-
57+ git commit -sm "Updated OWASP Benchmark Results"
58+ git push -u origin $BRANCH -f
59+ gh pr view --json mergedAt|jq -e '.mergedAt' && gh pr create --fill
6960 fi
0 commit comments