Skip to content

Commit 469b8ed

Browse files
Potential fix for code scanning alert no. 2: Workflow does not contain permissions (#494)
* Potential fix for code scanning alert no. 2: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * . --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 1981700 commit 469b8ed

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

.github/workflows/release-drafter.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,17 @@ name: Release Drafter
22

33
on:
44
push:
5-
# branches to consider in the event; optional, defaults to all
65
branches:
76
- master
8-
# pull_request event is required only for autolabeler
9-
pull_request:
10-
# Only following types are handled by the action, but one can default to all as well
11-
types: [opened, reopened, synchronize]
12-
# pull_request_target event is required for autolabeler to support PRs from forks
13-
# pull_request_target:
14-
# types: [opened, reopened, synchronize]
7+
8+
permissions:
9+
contents: write
10+
pull-requests: read
1511

1612
jobs:
1713
update_release_draft:
1814
runs-on: ubuntu-latest
1915
steps:
20-
# (Optional) GitHub Enterprise requires GHE_HOST variable set
21-
#- name: Set GHE_HOST
22-
# run: |
23-
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
24-
25-
# Drafts your next Release notes as Pull Requests are merged into "master"
2616
- uses: release-drafter/release-drafter@v6
27-
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
28-
# with:
29-
# config-name: my-config.yml
30-
# disable-autolabeler: true
3117
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)