mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-01 16:15:24 +00:00
chore: pin the plugin signing key and use TERMIX_PAT in workflows
This commit is contained in:
1 parent
35c954b79a
commit
0c4f673318
6 files changed
+27
-21
No files matched your search
@@ -35,7 +35,7 @@ jobs:
|
|||||||
- name: Resolve newest dev branch and compute beta version
|
- name: Resolve newest dev branch and compute beta version
|
||||||
id: dev
|
id: dev
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
run: |
|
run: |
|
||||||
REFS=$(gh api "repos/${{ github.repository }}/branches" --paginate -q '.[].name')
|
REFS=$(gh api "repos/${{ github.repository }}/branches" --paginate -q '.[].name')
|
||||||
if DEV_BRANCH=$(printf '%s\n' "$REFS" | node scripts/latest-dev-branch.cjs 2>/dev/null); then
|
if DEV_BRANCH=$(printf '%s\n' "$REFS" | node scripts/latest-dev-branch.cjs 2>/dev/null); then
|
||||||
@@ -106,7 +106,7 @@ jobs:
|
|||||||
- name: Resolve previous beta commit
|
- name: Resolve previous beta commit
|
||||||
id: prev
|
id: prev
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
run: |
|
run: |
|
||||||
SHA="${{ needs.prep.outputs.sha }}"
|
SHA="${{ needs.prep.outputs.sha }}"
|
||||||
PREV_SHA=$(gh release view beta --repo ${{ github.repository }} --json targetCommitish -q .targetCommitish 2>/dev/null || true)
|
PREV_SHA=$(gh release view beta --repo ${{ github.repository }} --json targetCommitish -q .targetCommitish 2>/dev/null || true)
|
||||||
@@ -161,7 +161,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create or update rolling beta release
|
- name: Create or update rolling beta release
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
run: |
|
run: |
|
||||||
TAG="beta"
|
TAG="beta"
|
||||||
TITLE="Beta (rolling) - ${{ needs.prep.outputs.beta_version }}"
|
TITLE="Beta (rolling) - ${{ needs.prep.outputs.beta_version }}"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ steps.branch.outputs.name }}
|
ref: ${{ steps.branch.outputs.name }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GHCR_TOKEN }}
|
token: ${{ secrets.TERMIX_PAT }}
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v7
|
uses: actions/setup-node@v7
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Resolve newest dev branch
|
- name: Resolve newest dev branch
|
||||||
id: dev
|
id: dev
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
run: |
|
run: |
|
||||||
REFS=$(gh api "repos/${{ github.repository }}/branches" --paginate -q '.[].name')
|
REFS=$(gh api "repos/${{ github.repository }}/branches" --paginate -q '.[].name')
|
||||||
# The helper exits non-zero when no dev-X.Y.Z branch exists; treat that
|
# The helper exits non-zero when no dev-X.Y.Z branch exists; treat that
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
- name: Retarget and merge Dependabot PRs
|
- name: Retarget and merge Dependabot PRs
|
||||||
if: ${{ steps.dev.outputs.branch != '' }}
|
if: ${{ steps.dev.outputs.branch != '' }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
DEV_BRANCH: ${{ steps.dev.outputs.branch }}
|
DEV_BRANCH: ${{ steps.dev.outputs.branch }}
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: lukegus
|
username: lukegus
|
||||||
password: ${{ secrets.GHCR_TOKEN }}
|
password: ${{ secrets.TERMIX_PAT }}
|
||||||
|
|
||||||
- name: Login to Docker Hub (prod and beta only)
|
- name: Login to Docker Hub (prod and beta only)
|
||||||
if: ${{ (inputs.build_type == 'Production' || inputs.build_type == 'Beta') && !inputs.dry_run }}
|
if: ${{ (inputs.build_type == 'Production' || inputs.build_type == 'Beta') && !inputs.dry_run }}
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ needs.prep.outputs.dev_branch }}
|
ref: ${{ needs.prep.outputs.dev_branch }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GHCR_TOKEN }}
|
token: ${{ secrets.TERMIX_PAT }}
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v7
|
uses: actions/setup-node@v7
|
||||||
@@ -146,7 +146,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ needs.prep.outputs.dev_branch }}
|
ref: ${{ needs.prep.outputs.dev_branch }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GHCR_TOKEN }}
|
token: ${{ secrets.TERMIX_PAT }}
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v7
|
uses: actions/setup-node@v7
|
||||||
@@ -164,7 +164,7 @@ jobs:
|
|||||||
- name: Clean up stale Crowdin git integration branch
|
- name: Clean up stale Crowdin git integration branch
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
run: |
|
run: |
|
||||||
PR_NUMBER=$(gh pr list --repo ${{ github.repository }} --head i18n_translate --state open --json number -q '.[0].number' || true)
|
PR_NUMBER=$(gh pr list --repo ${{ github.repository }} --head i18n_translate --state open --json number -q '.[0].number' || true)
|
||||||
if [ -n "$PR_NUMBER" ]; then
|
if [ -n "$PR_NUMBER" ]; then
|
||||||
@@ -247,7 +247,7 @@ jobs:
|
|||||||
- name: Open and squash-merge PR to main
|
- name: Open and squash-merge PR to main
|
||||||
id: merge
|
id: merge
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
run: |
|
run: |
|
||||||
DEV_BRANCH="${{ needs.prep.outputs.dev_branch }}"
|
DEV_BRANCH="${{ needs.prep.outputs.dev_branch }}"
|
||||||
TITLE="release-${{ needs.prep.outputs.version }}"
|
TITLE="release-${{ needs.prep.outputs.version }}"
|
||||||
@@ -318,7 +318,7 @@ jobs:
|
|||||||
- name: Clear existing release artifacts (overwrite mode)
|
- name: Clear existing release artifacts (overwrite mode)
|
||||||
if: ${{ inputs.mode == 'Overwrite release' }}
|
if: ${{ inputs.mode == 'Overwrite release' }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
run: |
|
run: |
|
||||||
TAG="${{ needs.prep.outputs.release_tag }}"
|
TAG="${{ needs.prep.outputs.release_tag }}"
|
||||||
if ! gh release view "$TAG" --repo ${{ github.repository }} >/dev/null 2>&1; then
|
if ! gh release view "$TAG" --repo ${{ github.repository }} >/dev/null 2>&1; then
|
||||||
@@ -341,7 +341,7 @@ jobs:
|
|||||||
- name: Create or update GitHub release
|
- name: Create or update GitHub release
|
||||||
if: ${{ inputs.mode != 'Overwrite release' }}
|
if: ${{ inputs.mode != 'Overwrite release' }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
run: |
|
run: |
|
||||||
TAG="${{ needs.prep.outputs.release_tag }}"
|
TAG="${{ needs.prep.outputs.release_tag }}"
|
||||||
TITLE="release-${{ needs.prep.outputs.version }}"
|
TITLE="release-${{ needs.prep.outputs.version }}"
|
||||||
@@ -384,7 +384,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: main
|
ref: main
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
token: ${{ secrets.GHCR_TOKEN }}
|
token: ${{ secrets.TERMIX_PAT }}
|
||||||
|
|
||||||
- name: Bump and commit Homebrew cask
|
- name: Bump and commit Homebrew cask
|
||||||
env:
|
env:
|
||||||
@@ -445,7 +445,7 @@ jobs:
|
|||||||
repository: Termix-SSH/Docs
|
repository: Termix-SSH/Docs
|
||||||
ref: main
|
ref: main
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GHCR_TOKEN }}
|
token: ${{ secrets.TERMIX_PAT }}
|
||||||
path: docs-repo
|
path: docs-repo
|
||||||
|
|
||||||
- name: Create docs release branch
|
- name: Create docs release branch
|
||||||
@@ -492,7 +492,7 @@ jobs:
|
|||||||
if: ${{ inputs.mode != 'Dry run' }}
|
if: ${{ inputs.mode != 'Dry run' }}
|
||||||
working-directory: docs-repo
|
working-directory: docs-repo
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
run: |
|
run: |
|
||||||
BRANCH="dev-${{ needs.prep.outputs.version }}"
|
BRANCH="dev-${{ needs.prep.outputs.version }}"
|
||||||
if ! git ls-remote --exit-code origin "refs/heads/$BRANCH" >/dev/null 2>&1; then
|
if ! git ls-remote --exit-code origin "refs/heads/$BRANCH" >/dev/null 2>&1; then
|
||||||
@@ -560,14 +560,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Delete dev branch in Termix
|
- name: Delete dev branch in Termix
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
run: |
|
run: |
|
||||||
git push https://x-access-token:${{ secrets.GHCR_TOKEN }}@github.com/${{ github.repository }}.git \
|
git push https://x-access-token:${{ secrets.TERMIX_PAT }}@github.com/${{ github.repository }}.git \
|
||||||
--delete "${{ needs.prep.outputs.dev_branch }}" || true
|
--delete "${{ needs.prep.outputs.dev_branch }}" || true
|
||||||
|
|
||||||
- name: Delete dev branch in Docs
|
- name: Delete dev branch in Docs
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
GH_TOKEN: ${{ secrets.TERMIX_PAT }}
|
||||||
run: |
|
run: |
|
||||||
git push https://x-access-token:${{ secrets.GHCR_TOKEN }}@github.com/Termix-SSH/Docs.git \
|
git push https://x-access-token:${{ secrets.TERMIX_PAT }}@github.com/Termix-SSH/Docs.git \
|
||||||
--delete "dev-${{ needs.prep.outputs.version }}" || true
|
--delete "dev-${{ needs.prep.outputs.version }}" || true
|
||||||
@@ -20,7 +20,13 @@ export interface TrustedPluginKey {
|
|||||||
*
|
*
|
||||||
* Add a key with `termix-plugin keygen` (see the Termix-Registry README).
|
* Add a key with `termix-plugin keygen` (see the Termix-Registry README).
|
||||||
*/
|
*/
|
||||||
export const TRUSTED_PLUGIN_KEYS: readonly TrustedPluginKey[] = [];
|
export const TRUSTED_PLUGIN_KEYS: readonly TrustedPluginKey[] = [
|
||||||
|
{
|
||||||
|
id: "ec40e29bcc4986b2",
|
||||||
|
publicKey: "rF6ouWTnuLgnZi7yemr+yhZmMxvNMvgro1Mf05IkSGo=",
|
||||||
|
addedIn: "26.10.0",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
export type ArtifactVerification =
|
export type ArtifactVerification =
|
||||||
{ ok: true; keyId: string } | { ok: false; reason: string };
|
{ ok: true; keyId: string } | { ok: false; reason: string };
|
||||||
|
|||||||
Reference in new issue
Block a user