Skip to content

Commit f64d92a

Browse files
authored
Merge pull request #371 from devops-actions/update-issue-pr-tag-permissions
Add top-level permissions to issue-pr-tag workflow
2 parents 2b940da + 0254020 commit f64d92a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/issue-pr-tag.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Issue/PR Tag"
2+
3+
# Trigger workflow when issues or pull requests are opened/edited,
4+
# or when this workflow file is modified
5+
on:
6+
issues:
7+
types: [opened, edited]
8+
pull_request:
9+
types: [opened, edited]
10+
push:
11+
paths:
12+
- .github/workflows/issue-pr-tag.yml
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
notify:
19+
uses: devops-actions/.github/.github/workflows/issue-pr-tag.yml@main
20+
permissions:
21+
contents: read
22+
issues: write
23+
pull-requests: write
24+
with:
25+
org_name: ${{ vars.FIXED_ORG_NAME }}
26+
tag_team: ${{ vars.TAG_TEAM }}
27+
issue: ${{ github.event.issue.number }}
28+
pr: ${{ github.event.pull_request.number }}
29+
secrets:
30+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)