Add manual job artifact deletion via the API in audit events
One of our customers encountered an issue where job artifacts in their project got deleted even if the expire_in: never
statement was set in the .gitlab-ci.yml
file. I believe the only this could've happen is by manually deleting the artifacts via the API, or in the Rails console).
The only way to track the deletion via the API is by getting the logs. If the logs are already rotated, this means that we won't have any details on identifying how the artifact got deleted.
Proposal
Track the deletion of the job artifacts via the API in the Audit event.