Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(ci): pass token via GH_TOKEN env var, not --token flag

EtienneLescotd8a25af2b4c9
diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml
index 7fbc7d99c..cbb83a1f5 100644
--- a/.github/workflows/prerelease.yml
+++ b/.github/workflows/prerelease.yml
@@ -101,7 +101,7 @@ jobs:
- name: Open PR and rebase-merge into main
env:
- TOKEN: ${{ secrets.OPENSCREEN_RELEASE_TOKEN }}
+ GH_TOKEN: ${{ secrets.OPENSCREEN_RELEASE_TOKEN }}
PRERELEASE: ${{ steps.version.outputs.prerelease }}
run: |
set -euo pipefail
@@ -111,11 +111,9 @@ jobs:
--head "$BRANCH" \
--title "chore(release): bump to ${PRERELEASE}" \
--body "Automated version bump from the prerelease workflow. Rebase-merged via PAT; bypass applies because EtienneLescot is a ruleset bypass actor." \
- --token "$TOKEN" \
--repo "$GITHUB_REPOSITORY"
- PR_NUMBER=$(gh pr list --head "$BRANCH" --state open --json number -q '.[0].number' --repo "$GITHUB_REPOSITORY" --token "$TOKEN")
+ PR_NUMBER=$(gh pr list --head "$BRANCH" --state open --json number -q '.[0].number' --repo "$GITHUB_REPOSITORY")
gh pr merge "$PR_NUMBER" --rebase --delete-branch-remote \
- --token "$TOKEN" \
--repo "$GITHUB_REPOSITORY"
- name: Push RC tag
diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml
index a034abf30..4aed6c42f 100644
--- a/.github/workflows/promote.yml
+++ b/.github/workflows/promote.yml
@@ -84,7 +84,7 @@ jobs:
- name: Open PR and rebase-merge into main
env:
- TOKEN: ${{ secrets.OPENSCREEN_RELEASE_TOKEN }}
+ GH_TOKEN: ${{ secrets.OPENSCREEN_RELEASE_TOKEN }}
STABLE_VERSION: ${{ steps.version.outputs.stable_version }}
run: |
set -euo pipefail
@@ -94,11 +94,9 @@ jobs:
--head "$BRANCH" \
--title "chore(release): bump to ${STABLE_VERSION}" \
--body "Automated version bump from the promote workflow. Rebase-merged via PAT; bypass applies because EtienneLescot is a ruleset bypass actor." \
- --token "$TOKEN" \
--repo "$GITHUB_REPOSITORY"
- PR_NUMBER=$(gh pr list --head "$BRANCH" --state open --json number -q '.[0].number' --repo "$GITHUB_REPOSITORY" --token "$TOKEN")
+ PR_NUMBER=$(gh pr list --head "$BRANCH" --state open --json number -q '.[0].number' --repo "$GITHUB_REPOSITORY")
gh pr merge "$PR_NUMBER" --rebase --delete-branch-remote \
- --token "$TOKEN" \
--repo "$GITHUB_REPOSITORY"
- name: Push stable tag