Skip to content

Commit db736cb

Browse files
Pijukatelclaude
andauthored
chore(ci): Use correct token for openapi version autobump (#2296)
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Low Risk** > Low risk CI-only change; it only affects how the workflow authenticates for checkout/commits and could fail if the secret is misconfigured. > > **Overview** > Updates the OpenAPI version bump GitHub Action to authenticate `actions/checkout` using `secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN` instead of relying on workflow `contents: write` permissions, ensuring the autobump can push commits with the intended token. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit d412156. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c72167b commit db736cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/bump-openapi-version.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
bump-version:
1212
name: Bump OpenAPI version
1313
runs-on: ubuntu-latest
14-
permissions:
15-
contents: write
1614

1715
steps:
1816
- uses: actions/checkout@v6
17+
with:
18+
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
1919

2020
- name: Bump OpenAPI version
2121
run: echo "v2-$(date -u +%Y-%m-%dT%H%M%SZ)" > apify-api/openapi/components/version.yaml

0 commit comments

Comments
 (0)