Skip to content

"Find Me a Vulnerability" Randomizer #48

"Find Me a Vulnerability" Randomizer

"Find Me a Vulnerability" Randomizer #48

Workflow file for this run

name: T.H.E.S.E. MistakeBot
on:
issues:
types:
- labeled
jobs:
mistakebot:
if: contains( github.event.issue.labels.*.name, 'to-err-is-human')
runs-on: ubuntu-latest
steps:
- run: |
echo A comment on PR $NUMBER
env:
NUMBER: ${{ github.event.issue.number }}
- name: Query for other mistake issues
uses: octokit/[email protected]
id: count-err-issues
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
query: |
{
repository(owner: "VulnerabilityHistoryProject", name: "vulnerability-history") {
issues(labels: "to-err-is-human", first: 100) {
edges {
node {
id
number
title
}
}
}
}
}
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
comment_tag: mistakes
message: |
:microscope: Hello, there! I'm MistakeBot.
This is issue ${{ github.event.issue.number }} right?
All "err" issues:
${{ steps.count-err-issues.outputs.data.repository.issues }}
- [ ] Check this box (nothing happens at the moment)
- [ ] Check this box (nothing happens at the moment)