[llvm] workflows: Add a job for auditing release assets (PR #92829)
Tobias Hieta via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 23:54:54 PDT 2024
================
@@ -0,0 +1,45 @@
+name: Release Asset Audit
+
+on:
+ workflow_dispatch:
+ schedule:
+ # * is a special character in YAML so you have to quote this string
+ # Run once an hour
+ - cron: '5 * * * *'
+
+ pull_request:
+ paths:
+ - ".github/workflows/release-asset-audit.py"
+ - ".github/workflows/release-asset-audit.yml"
+
+permissions:
+ contents: read # Default everything to read-only
+
+
+jobs:
+ audit:
+ name: "Release Asset Audit"
+ runs-on: ubuntu-22.04
+ if: github.repository == 'llvm/llvm-project'
+ steps:
+ - uses: actions/checkout at a5ac7e51b41094c92402da3b24376905380afc29 #v4.1.6
+ - name: "Run Audit Script"
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
+ run: |
+ pip install --require-hashes -r ./llvm/utils/git/requirements.txt
+ python3 ./.github/workflows/release-asset-audit.py $GITHUB_TOKEN
+ - name: "File Issue"
+ if: failure()
+ uses: actions/github-script at 60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
+ with:
+ github-token: ${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}
+ script: |
+ const issue = await github.rest.issues.create({
----------------
tru wrote:
ah this is great, I was wondering how we could highlight when it happened.
I wonder if we should tag the uploader and just say "Only RM's are allowed to upload" so they don't try to upload again if the thing was removed.
https://github.com/llvm/llvm-project/pull/92829
More information about the llvm-commits
mailing list