We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9c6afa commit 1c7fb31Copy full SHA for 1c7fb31
.github/workflows/add-lockdown-label.yml
@@ -1,8 +1,13 @@
1
name: Add Branch Lockdown Label to PRs
2
3
on:
4
- pull_request:
+ pull_request_target:
5
workflow_dispatch: # Allows manual triggering of the workflow
6
+ branches:
7
+ - 'release/8.*'
8
+ - 'release/9.*'
9
+ - 'release/10.*'
10
+ - 'main'
11
12
permissions:
13
actions: write # For managing the operation state cache
@@ -11,6 +16,8 @@ permissions:
16
jobs:
17
add-label:
18
runs-on: ubuntu-latest
19
+ # Only run on the main repository, not forks
20
+ if: github.repository == 'dotnet/sdk'
14
21
15
22
23
contents: read
0 commit comments