mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-09 20:23:21 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
name: 🤖 issue/pr assignment
|
|
on:
|
|
pull_request:
|
|
types: [opened]
|
|
branches:
|
|
- main
|
|
issues:
|
|
types: [opened]
|
|
|
|
jobs:
|
|
build:
|
|
permissions: write-all
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
ASSIGN_TASK_TOKEN: ${{ secrets.PDTEAMX_PAT }} # github personal token
|
|
steps:
|
|
- name: checkout repo content
|
|
uses: actions/checkout@v4 # checkout the repository content
|
|
- name: setup python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10' # install the python version needed
|
|
- name: install python packages
|
|
run: |
|
|
pip install requests
|
|
- name: execute python script on pr
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
run: python .github/scripts/assign_tasks.py ${{ github.event.pull_request.number }} pr ${{ secrets.GITHUB_TOKEN }}
|
|
- name: execute python script on issue opened
|
|
if: ${{ github.event_name == 'issues' }}
|
|
run: python .github/scripts/assign_tasks.py ${{ github.event.issue.number }} issue ${{ secrets.GITHUB_TOKEN }}
|