Skip to content

Commit 1f669e2

Browse files
committed
action permissions
1 parent d9c3365 commit 1f669e2

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [main]
66
pull_request:
77

8+
permissions:
9+
contents: read
10+
811
# Cancel in-progress runs for the same branch on new pushes.
912
# Never cancel runs on main (every merge must be fully tested).
1013
concurrency:

.github/workflows/enforce-release-branch.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- release
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
check-source:
1013
name: Source branch check

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
workflow_dispatch:
77
inputs:
88
version:
9+
10+
permissions:
11+
contents: read
912
description: "Release version (e.g. 1.2.0)"
1013
required: true
1114
type: string

0 commit comments

Comments
 (0)