Skip to content

Commit e99d53e

Browse files
committed
devtools: do not automatically commit reports with NEEDS_REVIEW status
vulntriage.sh currently automatically creates commits for reports with UNREVIEWED and NEEDS_REVIEW statuses. When we have NEEDS_REVIEW reports, rather than just submitting them directly, we want to review them first until its status is REVIEWED. To prevent accidental submission of NEEDS_REVIEW reports, vulntriage.sh should be changed such that it only commits UNREVIEWED and REVIEWED reports by default. Change-Id: Ia93359cb6dd2668852eb94ec3c48019b96bc7b9f Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/721083 Reviewed-by: Ethan Lee <[email protected]> Reviewed-by: Nicholas Husin <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 05fd91d commit e99d53e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

devtools/vulntriage.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# 3. Installs the latest version of the 'vulnreport' tool.
1313
# 4. Runs 'vulnreport triage'.
1414
# 5. Runs 'vulnreport create'.
15-
# 6. Runs 'vulnreport commit' for UNREVIEWED and NEEDS_REVIEW statuses.
15+
# 6. Runs 'vulnreport commit' for UNREVIEWED and REVIEWED statuses.
1616
#
1717
# Options:
1818
# --batch <size>: Sets the batch size for commit operations (default: 20).
@@ -31,7 +31,7 @@ BATCH_SIZE=20
3131
TRIAGE=true
3232
CREATE=true
3333
COMMIT=true
34-
COMMIT_STATUSES=("UNREVIEWED" "NEEDS_REVIEW")
34+
COMMIT_STATUSES=("UNREVIEWED" "REVIEWED")
3535
BRANCH_NAME="vulnreport-update-$(date +%Y-%m-%d)"
3636

3737
info() {

0 commit comments

Comments
 (0)