Skip to content

Commit b5941b0

Browse files
Merge pull request #1 from hyperpolymath/chore/cicd-optimizations
chore(ci): Maximize CI/CD values (Dependabot & Permissions)
2 parents acf0191 + 2b3dda0 commit b5941b0

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
groups:
8+
actions:
9+
patterns:
10+
- "*"

.github/workflows/boj-build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
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: read-all

.github/workflows/workflow-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
echo "=== Checking Action Pinning ==="
6464
# Find any uses: lines that don't have @SHA format
6565
# Pattern: uses: owner/repo@<40-char-hex>
66-
unpinned=$(grep -rn "uses:" .github/workflows/ | \
66+
unpinned=$(grep -rnE "^[[:space:]]+uses:" .github/workflows/ | \
6767
grep -v "@[a-f0-9]\{40\}" | \
6868
grep -v "uses: \./\|uses: docker://\|uses: actions/github-script" || true)
6969

0 commit comments

Comments
 (0)