Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(ci): publish agent skills releases with the job's own token (#91885)

Georgiy Tarasov67dc2b942a7d
diff --git a/.github/workflows/ci-agent-skills.yml b/.github/workflows/ci-agent-skills.yml
index a8f3bca333b1..3ffc62645495 100644
--- a/.github/workflows/ci-agent-skills.yml
+++ b/.github/workflows/ci-agent-skills.yml
@@ -515,13 +515,6 @@ jobs:
DEBUG: 1
run: ./bin/hogli build:skills
- - name: Mint release GitHub token
- id: release-token
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
- with:
- client-id: ${{ vars.GH_APP_POSTHOG_PATHS_FILTER_APP_ID }}
- private-key: ${{ secrets.GH_APP_POSTHOG_PATHS_FILTER_PRIVATE_KEY }}
-
- name: Determine next version
id: version
run: |
@@ -532,8 +525,11 @@ jobs:
echo "tag=agent-skills-v0.$((MINOR + 1)).0" >> "$GITHUB_OUTPUT"
- name: Create versioned release
+ # The job's own contents:write GITHUB_TOKEN, like build-phrocs.yml and
+ # build-livestream-tui.yml. No workflow triggers off these releases, so the
+ # app token bought nothing and only added a permission that can drift away.
env:
- GH_TOKEN: ${{ steps.release-token.outputs.token }}
+ GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ steps.version.outputs.tag }}
run: |
gh release create "$RELEASE_TAG" \
@@ -545,7 +541,7 @@ jobs:
- name: Update latest release
env:
- GH_TOKEN: ${{ steps.release-token.outputs.token }}
+ GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ steps.version.outputs.tag }}
run: |
if gh release view agent-skills-latest &>/dev/null; then