Skip to content

Commit 4030291

Browse files
committed
ci: set permissions
1 parent b733b91 commit 4030291

6 files changed

+14
-0
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ env:
99
# Vitest auto retry on flaky segfault
1010
VITEST_SEGFAULT_RETRY: 3
1111

12+
permissions: {}
13+
1214
on:
1315
push:
1416
branches:

.github/workflows/issue-close-require.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
close-issues:
99
if: github.repository == 'vitejs/vite-plugin-vue'
1010
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write # for actions-cool/issues-helper to update issues
13+
pull-requests: write # for actions-cool/issues-helper to update PRs
1114
steps:
1215
- name: need reproduction
1316
uses: actions-cool/issues-helper@v3

.github/workflows/issue-labeled.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
reply-labeled:
99
if: github.repository == 'vitejs/vite-plugin-vue'
1010
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write # for actions-cool/issues-helper to update issues
13+
pull-requests: write # for actions-cool/issues-helper to update PRs
1114
steps:
1215
- name: contribution welcome
1316
if: github.event.label.name == 'contribution welcome' || github.event.label.name == 'help wanted'

.github/workflows/release-continuous.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Publish Any Commit
22
on: [push, pull_request]
33

4+
permissions: {}
5+
46
jobs:
57
build:
68
runs-on: ubuntu-latest

.github/workflows/release-tag.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
release:
1414
if: github.repository == 'vitejs/vite-plugin-vue'
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write # for yyx990803/release-tag to create a release tag
1618
steps:
1719
- uses: actions/checkout@v4
1820

.github/workflows/semantic-pull-request.yml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
if: github.repository == 'vitejs/vite-plugin-vue'
1313
runs-on: ubuntu-latest
1414
name: Semantic Pull Request
15+
permissions:
16+
pull-requests: read
1517
steps:
1618
- name: Validate PR title
1719
uses: amannn/action-semantic-pull-request@v5

0 commit comments

Comments
 (0)