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
20 changes: 10 additions & 10 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ jobs:
fi
echo "::error::No successful CDK deploy of $COMMIT on main"
exit 1
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
fetch-depth: 0
Expand All @@ -191,7 +191,7 @@ jobs:
[ -n "$COMMIT" ] && args+=(--commit "$COMMIT")
[ "$MODE" = promote ] && [ -n "$VERSION" ] && args+=(--version "$VERSION")
python3 .github/scripts/auto_release.py plan "${args[@]}"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: steps.plan.outputs.count != '0'
with:
name: release-notes
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
if exists "$TAG"; then echo "::error::$TAG exists already; a release tag is never re-cut or moved"; exit 1; fi
printf 'coderhelm-release-tag v1\nrepository %s\ntag %s\ncommit %s\n' "$GITHUB_REPOSITORY" "$TAG" "$COMMIT" > "$RUNNER_TEMP/$TAG.release-tag"
cat "$RUNNER_TEMP"/*.release-tag
- uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1
- uses: sigstore/cosign-installer@756fe2d284c7292c4e9b62c8a28f1e5629c59532 # v4.1.3
with:
cosign-release: v2.4.1
- name: Sign the statements
Expand All @@ -293,7 +293,7 @@ jobs:
}
verify "$RUNNER_TEMP/tag.sigstore.json" "$RUNNER_TEMP/$TAG.release-tag"
if [ "$KIND" = beta ]; then verify "$RUNNER_TEMP/stable.sigstore.json" "$RUNNER_TEMP/$STABLE_TAG.release-tag"; fi
- uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
if: matrix.kind != 'promote'
with:
subject-path: ${{ runner.temp }}/*.release-tag
Expand Down Expand Up @@ -328,7 +328,7 @@ jobs:
echo "Created $TAG ($obj) on $COMMIT"
# The tag, fetched back from GitHub, checks out as installs check it
# (main's installer code).
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
persist-credentials: false
Expand Down Expand Up @@ -395,7 +395,7 @@ jobs:
done
[ "$conclusion" = success ] || { echo "::error::the Release run on $TAG ended: $conclusion"; exit 1; }

- uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1
- uses: sigstore/cosign-installer@756fe2d284c7292c4e9b62c8a28f1e5629c59532 # v4.1.3
with:
cosign-release: v2.4.1
# The published release, downloaded from GitHub, checks out as an
Expand All @@ -422,15 +422,15 @@ jobs:

# Only the publish script, at this workflow's own commit: the job runs
# nothing from the repository but that file.
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
persist-credentials: false
sparse-checkout: .github/scripts/publish-once.sh
sparse-checkout-cone-mode: false
# Same roles and same writes as release.yml's maintainer path: templates
# are created once and never replaced, the pointers only move forward.
- uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/coderhelm-prod-release-publisher
role-duration-seconds: 900
Expand Down Expand Up @@ -464,7 +464,7 @@ jobs:
bash .github/scripts/publish-once.sh "$L"
curl --proto =https -fsSL "https://$PUBLIC_BUCKET.s3.amazonaws.com/launch/$TAG/coderhelm.json" | cmp -s - "$d/coderhelm.json" \
|| { echo "::error::the template in S3 is not the signed coderhelm.json"; exit 1; }
- uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/coderhelm-prod-release-latest
role-duration-seconds: 900
Expand Down Expand Up @@ -522,7 +522,7 @@ jobs:
echo "$key: $url"
done

- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: release-notes
path: ${{ runner.temp }}/notes
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
name: Workflow security
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Pinned actions and safe triggers
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
run:
working-directory: services
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# The merge commit and its first parent (the base it merged onto).
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
run:
working-directory: services
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# The merge commit and its first parent (the base it merged onto).
Expand Down Expand Up @@ -163,8 +163,8 @@ jobs:
name: Lambda (Python)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- run: python3 -m unittest discover -s lambda/tests
Expand All @@ -179,8 +179,8 @@ jobs:
run:
working-directory: lambda/mcp-proxy
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: lts/*
- run: npm ci
Expand All @@ -193,14 +193,14 @@ jobs:
run:
working-directory: coderhelm-jira
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: lts/*
# Pure rules only (no Forge runtime); `forge lint` needs a login and
# runs in the release workflow (jira-app-release.yml).
- run: npm test
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
# The release workflow's permission check (scopes, egress, web triggers).
Expand All @@ -217,8 +217,8 @@ jobs:
run:
working-directory: infra
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: lts/*
cache: npm
Expand Down Expand Up @@ -247,8 +247,8 @@ jobs:
run:
working-directory: installer
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: lts/*
- run: npm test
Expand All @@ -258,13 +258,13 @@ jobs:
name: Native release (templates, checker, lint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: lts/*
# The read-only checker and the release's model list.
- run: node --test selfhost/launch/*.test.mjs
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
# One release's parent and part templates from stub code, then cfn-lint
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
contents: read
actions: read # an earlier deploy's build
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- id: inputs
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
--arg gw "$(sha256sum rust-build/gateway.zip | cut -d' ' -f1)" --arg wk "$(sha256sum rust-build/worker.zip | cut -d' ' -f1)" \
'{inputs: $inputs, commit: $commit, built_at: $built_at, build_run: $build_run, files: {"gateway.zip": $gw, "worker.zip": $wk}}' > rust-build/rust-build.json
cat rust-build/rust-build.json
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: rust-build
path: rust-build/
Expand All @@ -143,15 +143,15 @@ jobs:
id-token: write
contents: read
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: lts/*
cache: npm
cache-dependency-path: |
infra/package-lock.json

- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: rust-build
path: artifacts/
Expand All @@ -162,7 +162,7 @@ jobs:
echo "$(jq -r --arg f "$f" '.files[$f]' rust-build.json) $f"
done | sha256sum -c -

- uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
with:
role-to-assume: ${{ secrets.AWS_DEPLOY_ROLE_ARN }}
aws-region: ${{ env.AWS_REGION }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/jira-app-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,20 @@ jobs:
exit 1
fi

- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref || github.sha }}
fetch-depth: 0 # the permission check reads the last released manifest

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: npm
cache-dependency-path: |
coderhelm-jira/package-lock.json
coderhelm-jira/resources/admin/package-lock.json

- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"

Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
cat "$RUNNER_TEMP/versions.err" || true
echo "::warning::Could not read the released version from Forge; launch/jira-app.json is left as it is."
fi
- uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
if: steps.version.outputs.version != ''
id: aws
continue-on-error: true
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
[ "$REF_TYPE" = tag ] || { echo "::error::Run this on a tag (vX.Y.Z), not a branch"; exit 1; }
[[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]] || { echo "::error::$TAG is not vX.Y.Z"; exit 1; }
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.ref }}
fetch-depth: 0
Expand All @@ -103,7 +103,7 @@ jobs:
# a maintainer's SSH signature (with a key pinned in main's copy of
# selfhost/maintainers.json, not the tag's) when the tag has one, or
# else the release attestation auto-release.yml on main put in it.
- uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1
- uses: sigstore/cosign-installer@756fe2d284c7292c4e9b62c8a28f1e5629c59532 # v4.1.3
with:
cosign-release: v2.4.1
- id: path
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
env:
TAG: ${{ needs.check.outputs.tag }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.ref }}
fetch-depth: 0
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
fi
sha256sum dist/gateway.zip dist/worker.zip

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: lts/*

Expand All @@ -258,7 +258,7 @@ jobs:
run: |
node scripts/check-dashboard-ref.mjs
echo "ref=$(node -p 'require("./selfhost/versions.json").dashboardRef')" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: CoderHelm/coderhelm
ref: ${{ steps.dash.outputs.ref }}
Expand Down Expand Up @@ -352,7 +352,7 @@ jobs:
(cd dist && sha256sum gateway.zip worker.zip mcp-proxy.zip dashboard.tar.gz source.tar.gz coderhelm-selfhost.tgz install.sh coderhelm.json coderhelm-native.tar.gz models.json coderhelm-log-reader.yaml coderhelm-log-reader-update.yaml coderhelm-bedrock-export.yaml > SHA256SUMS)
cat dist/SHA256SUMS

- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-dist
path: dist/
Expand All @@ -379,7 +379,7 @@ jobs:
TAG: ${{ needs.check.outputs.tag }}
PUBLIC_BUCKET: coderhelm-public
steps:
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: release-dist
path: dist
Expand All @@ -392,7 +392,7 @@ jobs:
# Keyless signature of the checksums: installs and updates check it was
# made by exactly this workflow on this tag, and logged in Rekor. The
# cosign version matches the one the update build verifies with.
- uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1
- uses: sigstore/cosign-installer@756fe2d284c7292c4e9b62c8a28f1e5629c59532 # v4.1.3
with:
cosign-release: v2.4.1
- name: Sign the checksums
Expand All @@ -407,7 +407,7 @@ jobs:
--certificate-github-workflow-sha "$GITHUB_SHA" \
dist/SHA256SUMS

- uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
with:
subject-path: |
dist/gateway.zip
Expand Down Expand Up @@ -468,14 +468,14 @@ jobs:
# A maintainer's tag only: auto-release.yml publishes these for its own.
# Only the publish script, at this workflow's own commit: the job runs
# nothing from the repository but that file.
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
if: needs.check.outputs.path == 'maintainer'
with:
ref: ${{ github.sha }}
persist-credentials: false
sparse-checkout: .github/scripts/publish-once.sh
sparse-checkout-cone-mode: false
- uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
if: needs.check.outputs.path == 'maintainer'
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/coderhelm-prod-release-publisher
Expand Down Expand Up @@ -528,7 +528,7 @@ jobs:
(cd "$d" && sha256sum -c SHA256SUMS)
curl --proto =https -fsSL "https://$PUBLIC_BUCKET.s3.amazonaws.com/launch/$TAG/coderhelm.json" | cmp -s - "$d/coderhelm.json" \
|| { echo "::error::the template in S3 is not the signed coderhelm.json"; exit 1; }
- uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
if: ${{ needs.check.outputs.path == 'maintainer' && !contains(needs.check.outputs.tag, '-') }}
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/coderhelm-prod-release-latest
Expand Down
Loading
Loading