Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

test(ci): assert current Dependabot automation guards

Tind198df91accd
diff --git a/scripts/security/workflows.test.mjs b/scripts/security/workflows.test.mjs
index 1c9caa3e9..869411ff8 100644
--- a/scripts/security/workflows.test.mjs
+++ b/scripts/security/workflows.test.mjs
@@ -281,7 +281,11 @@ test("Dependabot automation excludes human reopens and ready events", () => {
"utf8",
);
assert.match(source, /types: \[opened, synchronize\]/);
- assert.match(source, /github\.actor == 'dependabot\[bot\]'/);
+ assert.match(source, /github\.event\.sender\.login == 'dependabot\[bot\]'/);
+ assert.match(
+ source,
+ /github\.event\.pull_request\.user\.login == 'dependabot\[bot\]'/,
+ );
});
test("Blacksmith actions use immutable commits with no scanner exemption", () => {