Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

ci: pin the stargazer-map actions and stop the contributors job failing on protected main

rubenluetke10-beep56ee4dec1c6b
diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml
index 4a2d9e13b6..08727c63b9 100644
--- a/.github/workflows/contributors.yml
+++ b/.github/workflows/contributors.yml
@@ -56,6 +56,10 @@ jobs:
with:
# The job pushes, so it needs a real branch rather than a detached HEAD.
ref: main
+ # main is protected. GITHUB_TOKEN can never push there; a maintainer
+ # token in INTEGRATION_TOKEN (the secret release-cut also reads) can
+ # when its owner may bypass the protection.
+ token: ${{ secrets.INTEGRATION_TOKEN || github.token }}
- name: Set up Python 3.11
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
@@ -83,4 +87,13 @@ jobs:
# second failure is reported rather than swallowed, so a genuinely
# broken job is visible instead of quietly skipping every week.
git pull --rebase --ff-only origin main
- git push origin main
+ if ! git push origin main 2> push.err; then
+ cat push.err
+ if grep -q "GH006\|protected branch" push.err; then
+ # Branch protection, not a broken job: say so once per run
+ # instead of a red X on every merged pull request.
+ echo "::warning::contributors: main is protected and this token may not push to it; the wall was not refreshed. Set INTEGRATION_TOKEN to a token that may bypass the protection."
+ exit 0
+ fi
+ exit 1
+ fi
diff --git a/.github/workflows/stargazer-map.yml b/.github/workflows/stargazer-map.yml
index e5ecb94d33..7ad539a249 100644
--- a/.github/workflows/stargazer-map.yml
+++ b/.github/workflows/stargazer-map.yml
@@ -24,8 +24,8 @@ jobs:
verify:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-node@v4
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
- run: node --test .github/scripts/test-stargazer-map.mjs
@@ -40,13 +40,13 @@ jobs:
steps:
# The geocoder belongs to the website. Pin reviewed code: it runs with
# this repository's token, never a contributor-controlled checkout.
- - uses: actions/checkout@v4
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: PersonalJarvis/personaljarvis.github.io
ref: 70125a6f2206415a60f15cdf99921f7b0dd4f0f2
persist-credentials: false
- - uses: actions/setup-node@v4
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
@@ -56,7 +56,7 @@ jobs:
run: node scripts/fetch-stargazers.mjs --repo PersonalJarvis/PersonalJarvis
- name: Publish the aggregate feed
- uses: actions/github-script@v7
+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
with:
script: |
const fs = require('node:fs');