Skip to content

Commit 793f0dc

Browse files
chore(ci): Maximize CI/CD values (Dependabot & Permissions) (#3)
This automated PR updates your CI/CD configurations to maximize value and security. - **Dependabot**: Ensures `github-actions` is monitored for updates. - **Security**: Adds `permissions: read-all` to workflows missing explicit permissions.
2 parents 5f946cc + 9b7c176 commit 793f0dc

16 files changed

Lines changed: 34 additions & 19 deletions

.github/workflows/boj-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
12
name: BoJ Server Build Trigger
2-
33
on:
44
push:
5-
branches: [ main, master ]
5+
branches: [main, master]
66
workflow_dispatch:
7-
87
jobs:
98
trigger-boj:
109
runs-on: ubuntu-latest
1110
steps:
1211
- name: Checkout
13-
uses: actions/checkout@v4
14-
12+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1513
- name: Trigger BoJ Server (Casket/ssg-mcp)
1614
run: |
1715
# Send a secure trigger to boj-server to build this repository
1816
curl -X POST "http://boj-server.local:7700/cartridges/ssg-mcp/invoke" -H "Content-Type: application/json" -d "{\"repo\": \"${{ github.repository }}\", \"branch\": \"${{ github.ref_name }}\", \"engine\": \"casket\\"}"}
1917
continue-on-error: true
18+
permissions:
19+
contents: read

.github/workflows/codeql.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
# the `language` matrix defined below to confirm you have the correct set of
1111
# supported CodeQL languages.
1212
#
13-
permissions: read-all
13+
permissions:
14+
contents: read
1415

1516
name: "CodeQL Advanced"
1617

.github/workflows/guix-nix-policy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
2-
permissions: read-all
2+
permissions:
3+
contents: read
34

45
name: Guix/Nix Package Policy
56
on: [push, pull_request]

.github/workflows/hypatia-scan.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on:
1111
- cron: '0 0 * * 0' # Weekly on Sunday
1212
workflow_dispatch:
1313

14-
permissions: read-all
14+
permissions:
15+
contents: read
1516

1617
jobs:
1718
scan:

.github/workflows/mirror.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
- 'v*'
99
workflow_dispatch:
1010

11-
permissions: read-all
11+
permissions:
12+
contents: read
1213

1314
jobs:
1415
mirror-gitlab:

.github/workflows/npm-bun-blocker.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
name: NPM/Bun Blocker
33
on: [push, pull_request]
44

5-
permissions: read-all
5+
permissions:
6+
contents: read
67

78
jobs:
89
check:

.github/workflows/quality.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
2-
permissions: read-all
2+
permissions:
3+
contents: read
34

45
name: Code Quality
56
on: [push, pull_request]

.github/workflows/rsr-antipattern.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
# Enforces: No TypeScript, No Go, No Python (except SaltStack), No npm
66
# Allows: ReScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme
77

8-
permissions: read-all
8+
permissions:
9+
contents: read
910

1011
name: RSR Anti-Pattern Check
1112

.github/workflows/scorecard-enforcer.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ on:
99
- cron: '0 6 * * 1' # Weekly on Monday
1010
workflow_dispatch:
1111

12-
permissions: read-all
12+
permissions:
13+
contents: read
1314

1415
jobs:
1516
scorecard:

.github/workflows/scorecard.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
schedule:
77
- cron: '0 4 * * 0'
88

9-
permissions: read-all
9+
permissions:
10+
contents: read
1011

1112
jobs:
1213
analysis:

0 commit comments

Comments
 (0)