diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 35710260..e1766e45 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -13,6 +13,7 @@ jobs: steps: - name: Fetch all PRs id: prs + # Auto approve PRs that are 20 days old, for security run: | prs=$(gh pr list --author 'dependabot[bot]' --json number,createdAt --label "dependencies" --state open | jq -r '.[] | select((.createdAt | fromdateiso8601) < (now - (15))) | .number') echo "::set-output name=prs::$prs"