@@ -47,13 +47,15 @@ const workflows = [
4747 runKind : true ,
4848 revision : docsAgentRevision ,
4949 writablePaths : "README.md,docs/**,plugins/**/README.md" ,
50+ driftCheck : "git diff --exit-code -- . ':(top,exclude)README.md' ':(top,glob,exclude)docs/**' ':(top,glob,exclude)plugins/**/README.md'" ,
5051 } ,
5152 {
5253 path : ".github/workflows/skills-agent.yml" ,
5354 audience : "skills" ,
5455 runKind : false ,
5556 revision : "main" ,
5657 writablePaths : "skills/**,plugins/**/skills/**,plugins/**/README.md" ,
58+ driftCheck : "git diff --exit-code" ,
5759 } ,
5860]
5961
@@ -81,7 +83,7 @@ for (const workflow of workflows) {
8183 assert . match ( source , / p n p m b u i l d / )
8284 assert . match ( source , / p n p m v e r i f y / )
8385 assert . match ( source , / v a l i d a t i o n _ d e p e n d e n c i e s : n p m i n s t a l l - - g l o b a l p n p m @ 1 0 \. 8 \. 1 / )
84- assert . match ( source , / g i t d i f f - - e x i t - c o d e / )
86+ assert . ok ( source . includes ( `"command": " ${ workflow . driftCheck } "` ) , ` ${ workflow . path } must use its scoped drift check` )
8587 assert . match ( source , / p e r m i s s i o n s : \n c o n t e n t s : w r i t e \n p u l l - r e q u e s t s : w r i t e \n i s s u e s : w r i t e / )
8688 assert . match ( source , / O P E N A I _ A P I _ K E Y : \$ \{ \{ s e c r e t s \. O P E N A I _ A P I _ K E Y \} \} / )
8789 assert . match ( source , / E X T E R N A L _ P A C K A G E _ S O U R C E _ P O L I C Y : \$ \{ \{ s e c r e t s \. E X T E R N A L _ P A C K A G E _ S O U R C E _ P O L I C Y \} \} / )
0 commit comments