1 name: Release Asset Audit
7 # * is a special character in YAML so you have to quote this string
13 - ".github/workflows/release-asset-audit.py"
14 - ".github/workflows/release-asset-audit.yml"
17 contents: read # Default everything to read-only
21 name: "Release Asset Audit"
23 if: github.repository == 'llvm/llvm-project'
25 - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 #v4.1.6
26 - name: "Run Audit Script"
28 GITHUB_TOKEN: ${{ github.token }}
30 pip install --require-hashes -r ./llvm/utils/git/requirements.txt
31 python3 ./.github/workflows/release-asset-audit.py $GITHUB_TOKEN
34 github.event_name != 'pull_request' &&
36 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
38 github-token: ${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}
40 var fs = require('fs');
42 if (fs.existsSync('./comment')) {
43 body = fs.readFileSync('./comment') + "\n\n";
45 body = body + `\n\nhttps://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`
47 const issue = await github.rest.issues.create({
48 owner: context.repo.owner,
49 repo: context.repo.repo,
50 title: "Release Asset Audit Failed",
51 labels: ['infrastructure'],