Mirror WordPress Plugins & Themes #9994
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: Mirror WordPress Plugins & Themes | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| update_workflows: | |
| description: 'Force-install the latest semgrep.yml in all tracked repos' | |
| type: boolean | |
| default: false | |
| schedule: | |
| - cron: '11 * * * *' | |
| jobs: | |
| download: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| cache: 'pip' | |
| - run: pip install -r requirements.txt | |
| - run: python mirror-targets.py ${{ inputs.update_workflows == true && '--update-workflows' || '' }} | |
| env: | |
| GH_TOKEN: ${{ secrets.WORDPRESS_BUG_BOUNTY_GITHUB_TOKEN }} |