Skip to content

Commit 73f41fc

Browse files
committed
modified: .github/workflows/code.yml
1 parent 329dd7f commit 73f41fc

File tree

8 files changed

+39
-48
lines changed

8 files changed

+39
-48
lines changed

.github/workflows/code.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ on:
1313
- cron: "30 4 * * 4"
1414
workflow_dispatch: {}
1515

16+
permissions: read-all
17+
1618
jobs:
1719
generate:
1820
runs-on: ubuntu-latest
1921
timeout-minutes: 30
2022
concurrency:
2123
group: ${{ github.workflow }}-${{ github.ref }}
2224
cancel-in-progress: true
23-
environment: code
25+
permissions:
26+
contents: write
2427
steps:
25-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
28+
- uses: actions/checkout@v4
2629
with:
2730
token: ${{ secrets.GITHUB_TOKEN }}
2831
submodules: recursive

.github/workflows/push-code.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,25 @@ on:
77
- "📖 Code"
88
types:
99
- completed
10+
11+
permissions: read-all
12+
1013
jobs:
1114
deploy:
1215
runs-on: ubuntu-latest
1316
concurrency:
1417
group: ${{ github.workflow }}-${{ github.ref }}
18+
permissions:
19+
contents: write
1520
steps:
1621
- name: ⤵️ Check out code from GitHub
17-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
22+
uses: actions/checkout@v4
1823
- name: ♻️ Prepare
1924
run: |
2025
command mkdir -p gh-pages/code gh-pages/zsh
2126
command cp -vrf code/zsdoc/html gh-pages/code/
2227
- name: 🚀 Deploy to GitHub Pages
23-
uses: peaceiris/actions-gh-pages@v3
28+
uses: peaceiris/actions-gh-pages@v4
2429
with:
2530
github_token: ${{ secrets.GITHUB_TOKEN }}
2631
publish_branch: gh-pages

.github/workflows/stale.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ on:
66
- cron: "0 8 * * *"
77
workflow_dispatch:
88

9+
permissions: read-all
10+
911
jobs:
1012
stale:
1113
name: 🧹 Clean up stale issues and PRs
1214
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
1317
steps:
1418
- name: 🚀 Run stale
1519
uses: actions/stale@v9
@@ -22,7 +26,7 @@ jobs:
2226
exempt-issue-labels: "no-stale 🔒,help-wanted 👥"
2327
stale-issue-message: >
2428
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be
25-
marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us
29+
marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us
2630
know if that works for you by leaving a 👍 Because this issue is marked as stale, it will be closed and
2731
locked in 7 days if no further activity occurs. Thank you for your contributions!
2832

.github/workflows/sync-labels.yml

-12
This file was deleted.

.github/workflows/trunk-check.yml

-23
This file was deleted.

.trunk/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
*logs
33
*actions
44
*notifications
5+
*tools
56
plugins
67
user_trunk.yaml
78
user.yaml
9+
tmp

.trunk/config/.yamllint.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
rules:
2+
quoted-strings:
3+
required: only-when-needed
4+
extra-allowed: ["{|}"]
5+
key-duplicates: {}
6+
octal-values:
7+
forbid-implicit-octal: true

.trunk/trunk.yaml

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
version: 0.1
22
runtimes:
33
enabled:
4-
5-
4+
5+
6+
67
cli:
7-
version: 1.1.0
8+
version: 1.22.11
89
options:
910
- commands: [check, fmt]
1011
- args: -y
1112
plugins:
1213
sources:
1314
- id: trunk
14-
ref: v0.0.6
15+
ref: v1.6.7
1516
uri: https://github.com/trunk-io/plugins
1617
repo:
1718
repo:
@@ -27,12 +28,16 @@ actions:
2728
- trunk-fmt-pre-commit
2829
- trunk-cache-prune
2930
lint:
31+
disabled:
32+
- yamllint
3033
enabled:
34+
35+
3136
- git-diff-check
32-
- actionlint@1.6.22
33-
- gitleaks@8.15.1
34-
- markdownlint@0.32.2
35-
- prettier@2.7.1
37+
- actionlint@1.7.7
38+
- gitleaks@8.24.2
39+
- markdownlint@0.44.0
40+
- prettier@3.5.3
3641
ignore:
3742
- linters: [markdownlint, prettier]
3843
paths:

0 commit comments

Comments
 (0)