@@ -46,17 +46,15 @@ grep -Fq "blocking: \${{ inputs.actions-security-blocking }}" "$workflow" \
4646grep -Fq " blocking: \$ {{ inputs.actions-security-blocking }}" " $privileged_pipeline " \
4747 || fail " the privileged pipeline does not forward its workflow-definition gate"
4848
49- grep -Eq ' ^[[:space:]]+publish-sarif:[[:space:]]*$' " $dependencies_workflow " \
50- || fail " dependency evaluation does not expose explicit SARIF publication"
51- grep -Eq ' ^ publish-sarif:[[:space:]]*$' " $dependencies_workflow " \
52- || fail " dependency SARIF publication is not isolated in its own job"
53- grep -Fq " if: always() && inputs.publish-sarif" " $dependencies_workflow " \
54- || fail " dependency SARIF publication does not run after a finding gate fails"
55- if grep -Fq " vars.ENABLE_GHAS" " $dependencies_workflow " ; then
56- fail " dependency evaluation still inherits consumer repository publication state implicitly"
49+ if grep -Eq ' security-events:[[:space:]]+write|publish-sarif:' " $dependencies_workflow " ; then
50+ fail " dependency evaluation still mixes read-only inspection with SARIF publication"
5751fi
58- grep -Fq " publish-sarif: \$ {{ inputs.publish-sarif }}" " $privileged_pipeline " \
59- || fail " the privileged pipeline does not deliberately forward SARIF publication policy"
52+ grep -Eq ' ^ publish-dependency-sarif:[[:space:]]*$' " $privileged_pipeline " \
53+ || fail " dependency SARIF publication is not isolated in the privileged pipeline"
54+ grep -Fq " if: always() && inputs.enable-dependencies && inputs.publish-sarif" " $privileged_pipeline " \
55+ || fail " privileged dependency publication does not honor explicit consumer policy"
56+ grep -Fq " needs: dependencies" " $privileged_pipeline " \
57+ || fail " privileged dependency publication is not ordered after inspection"
6058if grep -Eq ' security-events:[[:space:]]+write|publish-sarif:' " $workflow " " $consumer_example " ; then
6159 fail " the Ecosystem Baseline requests privileged SARIF publication"
6260fi
0 commit comments