refactor: derive the current branch from the URL instead of syncing an atom #24212
Workflow file for this run
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
| --- | |
| # yamllint disable rule:truthy | |
| name: Keyword Scanner | |
| on: [push, pull_request] | |
| env: | |
| KEYWORDS_LIST: "${{ secrets.KEYWORDS_LIST || '' }}" | |
| jobs: | |
| scan: | |
| if: | | |
| (github.event_name == 'push' && github.actor != 'dependabot[bot]') || | |
| (github.event_name == 'pull_request' && | |
| github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.14" | |
| - name: "Setup Python environment" | |
| run: "pip install invoke toml pydantic-settings" | |
| - name: Scan for prohibited keywords | |
| run: "invoke main.scan" |