Files
vscode-codeql/.github/workflows/label-issue.yml
Andrew Eisenberg acc46cef30 Add permissions block and actions analysis
This change does two things. If it is complicated to review
I will split up.

First, this ensures that all workflows have minimal permissions
blocks. Second, this adds actions analysis.
2025-02-13 22:32:46 +00:00

19 lines
401 B
YAML

name: Label issue
on:
issues:
types: [opened]
permissions:
issues: write
jobs:
label:
name: Label issue
runs-on: ubuntu-latest
steps:
- name: Label issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo '{"labels": ["VSCode"]}' | gh api repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels --input -