dave2wave commented on issue #367:
URL: 
https://github.com/apache/tooling-trusted-releases/issues/367#issuecomment-3842626228

   > This only applies when we receive an upload via our [TP upload 
action](https://github.com/apache/tooling-actions/tree/main/upload-to-atr), 
because otherwise the repository isn't available. The upload metadata already 
contains the commit, so then we can use the [GitHub Tree 
API](https://docs.github.com/en/rest/git/trees) in a task to fetch the list of 
files in the repository and store them in our `attestable` directory. We also 
need to queue a task that lists uploaded archives and stores that in the same 
directory. Whichever of the two tasks finishes last then needs to queue a 
comparison check to ensure that the local files are a subset of the remote 
files.
   
   No.
   
   1. For each project there should be a repository and branch configured. For 
a release the SHA.
   2. Checkout the repository sha to a temporary directory.
   3. Expand the artifact into another location.
   4. Do a diff between the two directories
   5. If there are any files in artifact that either are not in the repository 
checkout or differ in any way then the check fails.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to