Skip to content

Commit 8a18b6d

Browse files
committed
chore(ci): tidy workflows (permissions, concurrency, timeout, pins) wave-04
1 parent de9639e commit 8a18b6d

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/attic-dryrun.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ on:
88
permissions:
99
contents: read
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
attic-dryrun:
1317
runs-on: ubuntu-latest
18+
timeout-minutes: 30
19+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
1420
steps:
1521
- name: Checkout
1622
uses: actions/checkout@v4

.github/workflows/cleanup-audit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ on:
1717
permissions:
1818
contents: read # đủ để checkout & đọc repo
1919

20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
23+
2024
jobs:
2125
cleanup-audit:
2226
runs-on: ubuntu-latest
27+
timeout-minutes: 30
28+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
2329

2430
steps:
2531
- name: Checkout

.github/workflows/gitleaks.yml

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

8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
815
jobs:
916
gitleaks:
1017
runs-on: ubuntu-latest
18+
timeout-minutes: 30
19+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
1120
steps:
1221
- name: Checkout
1322
uses: actions/checkout@v4

0 commit comments

Comments
 (0)