git verify trusted tags

后端 未结 1 652
谎友^
谎友^ 2021-01-13 19:54

I would like to include git tag -v command into the deployment process to catch unsigned tags or tags signed by a non-trusted GPG key.

The command retur

相关标签:
1条回答
  • 2021-01-13 20:39

    I haven't tried it yet, and the documentation doesn't mention exit codes, but you could try

    git-verify-tag plumbing command


    Update Having no easy way to test this, I've reviewed the source code:

    https://github.com/git/git/blob/81b50f3ce40bfdd66e5d967bf82be001039a9a98/builtin/verify-tag.c

    It does appear to consciously return the relevant result codes, so I'd expect this to work

    0 讨论(0)
提交回复
热议问题