Skip to content

Commit 581d444

Browse files
ci: add workflow permissions (#170)
1 parent 60a0dce commit 581d444

4 files changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
env:
1013
RUSTFLAGS: '-Dwarnings'
1114

@@ -86,4 +89,4 @@ jobs:
8689
run: cargo binstall -y sea-orm-cli
8790

8891
- name: Test
89-
run: cargo test --locked
92+
run: cargo test --locked --release

.github/workflows/labels.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Labels
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: read
8+
issues: write
9+
610
jobs:
711
sync-labels:
812
name: Sync Labels

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- minor
1313
- major
1414

15+
permissions:
16+
contents: write
17+
1518
jobs:
1619
release:
1720
name: Release

.github/workflows/website.yml

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

8+
permissions:
9+
contents: read
10+
811
concurrency:
912
group: ${{ github.workflow }}-${{ github.ref }}
1013
cancel-in-progress: false
@@ -13,6 +16,7 @@ jobs:
1316
book-test:
1417
name: Test Book
1518
runs-on: ubuntu-latest
19+
1620
steps:
1721
- uses: actions/checkout@v5
1822

@@ -35,6 +39,7 @@ jobs:
3539
name: Build Book
3640
needs: book-test
3741
runs-on: ubuntu-latest
42+
3843
steps:
3944
- uses: actions/checkout@v5
4045
with:
@@ -71,10 +76,12 @@ jobs:
7176
needs: book-build
7277
if: github.ref == 'refs/heads/main'
7378
runs-on: ubuntu-latest
79+
7480
permissions:
7581
contents: read
7682
pages: write
7783
id-token: write
84+
7885
steps:
7986
- uses: actions/checkout@v5
8087
with:

0 commit comments

Comments
 (0)