policy: update verify_git_signature to take git object as parameter

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2026-01-14 09:03:42 -08:00
parent 8906b254d3
commit df5d9eb8c2
2 changed files with 45 additions and 19 deletions
+1 -1
View File
@@ -497,7 +497,7 @@ func (p *Policy) CheckPolicy(ctx context.Context, req *policysession.CheckPolicy
return nil, nil, err
}
unk := collectUnknowns(pq.Support)
if _, ok := st.Unknowns["verify_git_signature"]; ok {
if _, ok := st.Unknowns[funcVerifyGitSignature]; ok {
unk = append(unk, "input.git.commit")
}
if len(unk) > 0 {