Skip to content

Commit

Permalink
πŸ”’ Check for pwn request attacks
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Nov 7, 2024
1 parent df718ca commit afe3a51
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/πŸš«πŸ‘€πŸ’°.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Check for πŸ‘€πŸ’°

on:
pull_request:

jobs:
check-for-changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- name: Initiate GitHub Check
uses: LouisBrunner/checks-action@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: "πŸš«πŸ‘€πŸ’°"
status: in_progress
- name: Checkout code
uses: actions/checkout@v4.2.2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: |
.github/workflows/match_target_repository.yaml
.github/workflows/πŸš«πŸ‘€πŸ’°.yaml
- name: Check for workflow changes
id: workflow-changes
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.any_changed }}
run: |
if [ "${CHANGED_FILES}" = "true" ]; then
echo "conclusion=failure" >> "$GITHUB_OUTPUT"
else
echo "conclusion=success" >> "$GITHUB_OUTPUT"
fi
- name: Finalize GitHub Check
uses: LouisBrunner/checks-action@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: "πŸš«πŸ‘€πŸ’°"
status: completed
conclusion: ${{ steps.workflow-changes.outputs.conclusion }}

0 comments on commit afe3a51

Please sign in to comment.