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
2 changes: 1 addition & 1 deletion .github/setup-node/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ runs:
using: "composite"
steps:
- name: Use Node.js ${{ inputs.node_version }}
uses: actions/setup-node@v6
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version: ${{ inputs.node_version }}
5 changes: 3 additions & 2 deletions .github/workflows/codex-parity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ permissions:

jobs:
codex-parity:
runs-on: [self-hosted, ubuntu-22-04, regular]
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-codex-parity') }}

steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
persist-credentials: false

- name: Check Codex parity
run: bash scripts/check-codex-parity.sh "${{ github.event.pull_request.base.sha }}" "${{ github.sha }}"
8 changes: 4 additions & 4 deletions .github/workflows/release-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ concurrency:

jobs:
release:
runs-on: [self-hosted, ubuntu-22-04, regular]
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token (this repo)
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
with:
app-id: ${{ secrets.FASTEDGE_APP_ID }}
private-key: ${{ secrets.FASTEDGE_APP_PRIVATE_KEY }}

- name: Checkout main
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
ref: main
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
- name: Generate cross-repo token for MCP server
if: steps.detect.outputs.changed == 'true' || inputs.force == true
id: mcp-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
with:
app-id: ${{ secrets.FASTEDGE_APP_ID }}
private-key: ${{ secrets.FASTEDGE_APP_PRIVATE_KEY }}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/sync-reference-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ name: Sync Reference Docs
# FASTEDGE_APP_ID — GitHub App numeric ID (fastedge-plugin-sync)
# FASTEDGE_APP_PRIVATE_KEY — GitHub App private key (.pem)
# Token generated via actions/create-github-app-token@v1
# and exported as GH_TOKEN for all steps (validate,
# fetch, PR creation/updates, baseline tag pushes)
# and passed as GH_TOKEN to the steps that need it
# (validate, git credentials, sync).

on:
workflow_dispatch:
Expand Down Expand Up @@ -55,35 +55,32 @@ permissions:
contents: write # push annotated baseline tags + PR branch commits
pull-requests: write # create / edit PRs via gh CLI

env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

jobs:
sync-reference-docs:
runs-on: [self-hosted, ubuntu-22-04, regular]
runs-on: ubuntu-latest

steps:
- name: Checkout plugin repo
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
ref: ${{ github.ref }}

- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
with:
app-id: ${{ secrets.FASTEDGE_APP_ID }}
private-key: ${{ secrets.FASTEDGE_APP_PRIVATE_KEY }}

- name: Export token for gh CLI
run: echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"

- name: Validate sources.json
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: bash scripts/sync/validate-sources.sh sources.json

- name: Configure git credentials
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: gh auth setup-git

- name: Setup Node.js
Expand All @@ -94,6 +91,9 @@ jobs:

- name: Sync reference docs
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# workflow_dispatch inputs (empty for repository_dispatch)
DRY_RUN: ${{ inputs.dry_run || 'false' }}
FORCE_RUN: ${{ inputs.force_run || 'false' }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/validate-codex-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ permissions:

jobs:
validate-codex-plugin:
runs-on: [self-hosted, ubuntu-22-04, regular]
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false

- name: Setup Node.js
uses: ./.github/setup-node
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/validate-cursor-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ permissions:

jobs:
validate-cursor-plugin:
runs-on: [self-hosted, ubuntu-22-04, regular]
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false

- name: Setup Node.js
uses: ./.github/setup-node
Expand Down