yt-dlp/.github/workflows/issue-lockdown.yml
bashonly 35684c1171
[cleanup] Misc (#16452)
* Include `pin*` extras in lockfile
* Fix and clean up `devscripts/update_requirements.py`
* Improve release channel documentation
* Remove false statement from `--prefer-insecure` documentation
* Assorted code cleanup
* Set `GH_TELEMETRY=false` in CI/CD whenever `gh` is used
* Add comments about required checks in CI workflows
* Run `test-workflows.yml` for every PR so its checks can be required
* Verify actionlint attestation in CI
* Remove zizmor version to reduce workflow maintenance burden
  (zizmor-action handles pinning on its end)

Authored by: bashonly
2026-05-03 22:19:08 +00:00

26 lines
538 B
YAML

name: Issue Lockdown
on:
issues:
types: [opened]
permissions: {}
env:
GH_TELEMETRY: "false"
jobs:
lockdown:
name: Issue lockdown
if: vars.ISSUE_LOCKDOWN
permissions:
issues: write # Needed to lock issues
runs-on: ubuntu-latest
steps:
- name: "Lock new issue"
env:
GH_TOKEN: ${{ github.token }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
REPOSITORY: ${{ github.repository }}
run: |
gh issue lock -R "${REPOSITORY}" "${ISSUE_NUMBER}"