[CASE] Phishing email with malicious attachment — Vendor impersonation #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generate Case | |
| on: | |
| issues: | |
| types: [opened] | |
| permissions: | |
| contents: write | |
| jobs: | |
| create: | |
| if: contains(join(github.event.issue.labels.*.name, ' '), 'new-case') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Save issue to README | |
| env: | |
| NUM: ${{ github.event.issue.number }} | |
| TITLE: ${{ github.event.issue.title }} | |
| BODY: ${{ github.event.issue.body }} | |
| run: | | |
| DIR="cases/case-$NUM" | |
| mkdir -p "$DIR" | |
| { | |
| echo "# $TITLE" | |
| echo | |
| echo "$BODY" | |
| } > "$DIR/README.md" | |
| - name: Commit & push | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "actions@github.com" | |
| git add cases/ | |
| git commit -m "Case #${{ github.event.issue.number }} archived" || true | |
| git push |