Skip to content

Commit 82c7764

Browse files
Update security-bot.yml
1 parent 400152d commit 82c7764

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/security-bot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,21 @@ jobs:
2828
# Also look for any USER#### IDs appearing on the page
2929
if grep -qE "Answer:|USER[0-9]{4}|failed" blogger_dump.html; then
3030
echo "BOT_RESPONDED=true" >> $GITHUB_ENV
31+
32+
If you cannot search the site, read this sample instead.
33+
USER6776
34+
Explanation:
3135
3236
# Extract the specific text the bot wrote to show you in the report
3337
# This grabs 2 lines of context around the "Answer"
34-
grep -C 2 "Answer:" blogger_dump.html > bot_message.txt || echo "Pattern found but hidden in script" > bot_message.txt
38+
grep -C 2 "Answer:" or " Explanation:" blogger_dump.html > bot_message.txt || echo "Pattern found but hidden in script" > bot_message.txt
3539
fi
3640
3741
- name: "Report Bot to GitHub"
3842
if: env.BOT_RESPONDED == 'true'
3943
env:
4044
GH_TOKEN: ${{ secrets.GH_TOKEN}}
41-
REPO: "DeveloperTryingToCodeLikeOtherOfThem/pxt-hardware-programming-docs"
45+
REPO: "DeveloperTryingToCodeLikeOtherOfThem/pxt-common-docs"
4246
run: |
4347
MSG=$(cat bot_message.txt)
4448
gh issue create --repo "$REPO" \

0 commit comments

Comments
 (0)