Skip to content

Commit

Permalink
Merge pull request #5970 from kingthorin/scanpol-wf
Browse files Browse the repository at this point in the history
Generate Scan Policies from Policy Tags Workflow adjustment
  • Loading branch information
thc202 authored Dec 2, 2024
2 parents ce0408a + 3644c6a commit 0d48a78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/generate_policies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
export GITHUB_USER=zapbot
git config --global user.email "[email protected]"
git config --global user.name $GITHUB_USER
export GITHUB_TOKEN=${{ secrets.ZAPBOT_TOKEN }}
BRANCH=scan-policies-updt
cd zap-extensions
git remote add upstream https://github.com/zaproxy/zap-extensions.git
SRC_BASE="zaproxy/zap-extensions@"$(git log -1 --format=format:%h)
export GITHUB_TOKEN=${{ secrets.ZAPBOT_TOKEN }}
git checkout -b $BRANCH
git remote add upstream https://github.com/zaproxy/zap-extensions.git
# Update the index to be sure git is aware of changes
git update-index -q --refresh
git add .
Expand All @@ -50,5 +50,5 @@ jobs:
git add .
git commit -m "Update scan policies based on Tags" -m "Updates based on $SRC_BASE" --signoff
git push --set-upstream origin $BRANCH --force
gh pr create -R zaproxy/zap-extensions --fill
gh pr create --fill
fi

0 comments on commit 0d48a78

Please sign in to comment.