Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
groups:
actions:
patterns:
- "*"
6 changes: 2 additions & 4 deletions .github/workflows/boj-build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
name: BoJ Server Build Trigger

on:
push:
branches: [ main, master ]
branches: [main, master]
workflow_dispatch:

jobs:
trigger-boj:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Trigger BoJ Server (Casket/ssg-mcp)
run: |
# Send a secure trigger to boj-server to build this repository
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\\"}"}
continue-on-error: true
permissions: read-all
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: test

on:
push:
branches:
- master
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -21,3 +19,4 @@ jobs:
- run: gleam deps download
- run: gleam test
- run: gleam format --check src test
permissions: read-all

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove the blanket read-all permission here

If this repo or org uses GitHub's restricted default GITHUB_TOKEN policy (contents/packages only, which is the default for new repos), permissions: read-all widens every push and pull_request run to all readable scopes. This workflow only checks out the repo and runs local Gleam commands, so the broader token is unnecessary and is now exposed to the third-party erlef/setup-beam@v1 action and all later steps; a compromised action or PR script would be able to read issue/PR/package metadata that was previously unavailable.

Useful? React with 👍 / 👎.

Loading