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
29 changes: 0 additions & 29 deletions .github/workflows/flaky.yml

This file was deleted.

11 changes: 6 additions & 5 deletions .github/workflows/opencode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
pull_request_review_comment:
types: [created]

permissions:
id-token: write
contents: read
pull-requests: read
issues: read
Comment on lines +9 to +13

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚨 suggestion (security): Consider keeping permissions scoped at the job level to avoid future over-broad grants.

At the workflow level, any future jobs will inherit id-token: write, contents: read, etc., even if they don't need them. To maintain least privilege and avoid unintentionally over-permissioning new jobs, it’s safer to keep these permissions defined only on the job that actually requires them unless you’re confident all jobs will share the same needs.

Suggested implementation:

jobs:

jobs:
  opencode:
    permissions:
      id-token: write
      contents: read
      pull-requests: read
      issues: read
    if: |
      contains(github.event.comment.body, ' /opencode') ||


jobs:
opencode:
if: |
Expand All @@ -14,11 +20,6 @@ jobs:
contains(github.event.comment.body, ' /opencode') ||
startsWith(github.event.comment.body, '/opencode')
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
pull-requests: read
issues: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand Down
Loading