theupdateframework / tuf-on-ci-template

3 stars 1 forks source link

smoke-test read permissions #24

Closed mrjoelkamp closed 8 months ago

mrjoelkamp commented 8 months ago

Summary

We currently have a TUF-on-CI repo for a staging environment that is private.

The smoke-test job fails due to missing the contents: read permission for repo checkout.

  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/publish*:refs/remotes/origin/publish* +refs/tags/publish*:refs/tags/publish*
  remote: Repository not found.
  Error: fatal: repository 'https://github.com/docker/tuf-staging/' not found
  The process '/usr/bin/git' failed with exit code 128

I added the permission in our copy of the workflow file but thought it might make a good default for the template.