Skip to content

Commit a290f9b

Browse files
committed
Warn that the PR workflow alone stops baseline updates
1 parent a5b1c93 commit a290f9b

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
- If you use the GitHub Actions example, replace the combined workflow with the
88
[PR workflow](workflows/github-actions.yml) and require its `socket-security`
9-
check. Install the [push workflow](workflows/github-actions-push.yml) to keep
10-
branch scans and baseline updates. Install the
9+
check. Install the [push workflow](workflows/github-actions-push.yml) in the
10+
same change: the PR workflow doesn't run on pushes, so without it the
11+
default-branch baseline stops updating and PR comparisons run against an old
12+
scan. Install the
1113
[ignore-command workflow](workflows/github-actions-comments.yml) if you use PR
1214
ignore commands.
1315

‎docs/ci-cd.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,10 @@ exclusive to the PR workflow in either setup. A job skipped by a job-level
559559

560560
When replacing the combined example, copy the PR workflow to the existing
561561
workflow path and remove any other jobs named `socket-security`. Confirm the
562-
PR job reports the check named in branch protection. If you use
562+
PR job reports the check named in branch protection. Add the push workflow in
563+
the same change: the PR workflow doesn't run on pushes, so without it the
564+
default-branch baseline stops updating and later PR comparisons run against an
565+
old scan. If you use
563566
`--strict-blocking` as a merge gate, verify a reopened PR with an existing
564567
Block alert fails and a completed clean comparison passes.
565568

0 commit comments

Comments
 (0)