Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
ci(audit): schedule daily audit run and request reviewers on remediation PR (#3557)
Abimael Martell2eae17dd4b41
diff --git a/.github/workflows/npm-audit-claude-remediation.yml b/.github/workflows/npm-audit-claude-remediation.ymlindex 4e5f7a1ea..a53e3076d 100644--- a/.github/workflows/npm-audit-claude-remediation.yml+++ b/.github/workflows/npm-audit-claude-remediation.yml@@ -115,6 +115,20 @@ jobs:gh pr edit "$PR_NUMBER" --body-file "$UPDATED_BODY_FILE"+ - name: Request code review+ if: ${{ steps.scan.outputs.has_uncovered == 'true' && steps.claude.outputs.branch_name != '' }}+ env:+ GH_TOKEN: ${{ github.token }}+ BRANCH_NAME: ${{ steps.claude.outputs.branch_name }}+ run: |+ set -euo pipefail+ PR_NUMBER="$(gh pr list --head "$BRANCH_NAME" --state open --json number --jq '.[0].number // empty')"+ if [ -z "$PR_NUMBER" ]; then+ echo "::warning::No open PR for ${BRANCH_NAME}; cannot request reviewers."+ exit 0+ fi+ gh pr edit "$PR_NUMBER" --add-reviewer abimaelmartell,mogery+- name: Notify Slack about remediation PRif: ${{ steps.remediation_pr.outputs.pr_url != '' && env.NPM_AUDIT_CLAUDE_SLACK_WEBHOOK_URL != '' }}env:diff --git a/.github/workflows/npm-audit.yml b/.github/workflows/npm-audit.ymlindex 6f48ad5ad..1b4c0b7fe 100644--- a/.github/workflows/npm-audit.yml+++ b/.github/workflows/npm-audit.yml@@ -4,6 +4,9 @@ on:pull_request:branches:- main+ schedule:+ - cron: "0 17 * * *" # 9am PST / 10am PDT+ workflow_dispatch:jobs:audit: