Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/peribolos-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@ jobs:
# Filter expected enterprise-member drift
FILTERED_COUNT=0
if [ -n "$ENTERPRISE_MEMBERS_IGNORE" ]; then
# Validate usernames before building grep pattern.
# GitHub usernames allow only [a-zA-Z0-9-], so the values
# are safe for grep -vE without regex escaping. This guard
# fails fast if an invalid value is ever added.
for user in $(echo "$ENTERPRISE_MEMBERS_IGNORE" | tr ',' '\n'); do
user=$(echo "$user" | xargs)
[ -z "$user" ] && continue
if ! [[ "$user" =~ ^[a-zA-Z0-9-]+$ ]]; then
echo "::error::Invalid username in ENTERPRISE_MEMBERS_IGNORE: '$user'"
exit 1
fi
done
IGNORE_PATTERN=$(echo "$ENTERPRISE_MEMBERS_IGNORE" | tr ', ' '\n' \
| sed '/^$/d' | paste -sd'|' -)
BEFORE=$(wc -l < /tmp/drift-mutations.txt)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/safe_settings_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:
// exist outside the webhook flow. The sync completes
// and results are logged; only the Check Run reporting
// fails. Safe to skip.
if (String(error).includes('check_suite')) {
if (String(error).includes("Cannot read properties of undefined (reading 'check_suite')")) {
probot.log.info(
'check_suite reporting skipped (expected in full-sync mode). ' +
'See: github-community-projects/safe-settings#818'
Expand Down
Loading