[Good First Issue]: TEST 2 ISSUE NOT AVAILABLE #4
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: PythonBot - Assignment Limit | |
| on: | |
| issues: | |
| types: [assigned] | |
| permissions: | |
| issues: write | |
| jobs: | |
| check-assignment-limit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden the runner | |
| uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Check Assignment Count | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| ASSIGNEE: ${{ github.event.assignee.login }} | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| REPO: ${{ github.repository }} | |
| run: | | |
| # Make script executable (just in case permissions were lost during checkout) | |
| chmod +x .github/scripts/check_assignment_limit.sh | |
| # Run the script | |
| ./.github/scripts/check_assignment_limit.sh |