Skip to content

Commit ff55eda

Browse files
authored
chore: set permissions (#893)
1 parent 5dfa123 commit ff55eda

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ name: build
66
schedule:
77
- cron: '51 2 * * 4'
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
fmt:
1114
name: cargo fmt
@@ -14,15 +17,15 @@ jobs:
1417
- uses: actions/checkout@v4
1518
- name: cargo fmt
1619
run: cargo fmt --all -- --check
17-
20+
1821
clippy:
1922
name: cargo clippy
2023
runs-on: ubuntu-latest
2124
steps:
2225
- uses: actions/checkout@v4
2326
- name: cargo clippy
2427
run: cargo clippy --all --all-targets -- -D warnings
25-
28+
2629
test:
2730
name: cargo test
2831
runs-on: ubuntu-latest

.github/workflows/directory_workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
branches: [master]
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
MainSequence:
811
name: DIRECTORY.md

.github/workflows/stale.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ name: 'Close stale issues and PRs'
22
on:
33
schedule:
44
- cron: '0 0 * * *'
5+
permissions:
6+
contents: read
7+
58
jobs:
69
stale:
10+
permissions:
11+
issues: write
12+
pull-requests: write
713
runs-on: ubuntu-latest
814
steps:
915
- uses: actions/stale@v9

.github/workflows/upload_coverage_report.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- master
1010
pull_request:
1111

12+
permissions:
13+
contents: read
14+
1215
env:
1316
REPORT_NAME: "lcov.info"
1417

0 commit comments

Comments
 (0)