Skip to content

Commit 05c7b0d

Browse files
authored
ci: GitHub workflows security hardening (vuejs#6743)
1 parent 3cc8e02 commit 05c7b0d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches:
88
- main
9+
10+
permissions:
11+
contents: read # to fetch code (actions/checkout)
12+
913
jobs:
1014
unit-test:
1115
runs-on: ubuntu-latest

.github/workflows/release-tag.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ on:
55

66
name: Create Release
77

8+
permissions: {}
89
jobs:
910
build:
11+
permissions:
12+
contents: write # to create release (yyx990803/release-tag)
13+
1014
name: Create Release
1115
runs-on: ubuntu-latest
1216
steps:

0 commit comments

Comments
 (0)