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
21 changes: 19 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,25 @@ jobs:
name: Parse tag
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.parse.outputs.packages }}
version: ${{ steps.parse.outputs.version }}
release_tag: ${{ steps.parse.outputs.release_tag }}
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- name: Parse release version from tag
id: parse
shell: bash
env:
INPUT_RELEASE_TAG: ${{ inputs.release_tag }}
run: |
set -euo pipefail

TAG="${{ inputs.release_tag }}"
TAG="$INPUT_RELEASE_TAG"
if [ -z "$TAG" ]; then
TAG="${GITHUB_REF#refs/tags/}"
fi
Expand Down Expand Up @@ -99,6 +105,9 @@ jobs:
TEMPO_WALLET_PACKAGE_DIR: artifacts
TEMPO_WALLET_PACKAGE_OUTPUT: artifacts/${{ matrix.package }}-${{ matrix.build.suffix }}
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.parse-tag.outputs.release_tag }}
Expand Down Expand Up @@ -135,7 +144,7 @@ jobs:

- name: Smoke test host binary
if: matrix.build.pkg_target == 'node22-linux-x64' || matrix.build.pkg_target == 'node22-linux-arm64' || matrix.build.pkg_target == 'node22-macos-arm64'
run: ./artifacts/${PACKAGE}-${{ matrix.build.suffix }} --version
run: ./artifacts/"${PACKAGE}"-${{ matrix.build.suffix }} --version

- name: Generate sha256
shell: bash
Expand Down Expand Up @@ -196,6 +205,7 @@ jobs:
environment: release
permissions:
contents: write
id-token: write
needs: [parse-tag, build]
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' && !startsWith(needs.parse-tag.outputs.release_tag, 'refs/heads/')
Expand All @@ -211,6 +221,9 @@ jobs:
AWS_MAX_ATTEMPTS: "10"
AWS_REQUEST_CHECKSUM_CALCULATION: when_required
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.parse-tag.outputs.release_tag }}
Expand Down Expand Up @@ -384,12 +397,16 @@ jobs:
environment: release
permissions:
contents: write
id-token: write
needs: [parse-tag, publish]
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' && !startsWith(needs.parse-tag.outputs.release_tag, 'refs/heads/')
env:
RELEASE_TAG: ${{ needs.parse-tag.outputs.release_tag }}
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- name: Publish draft release
env:
GH_TOKEN: ${{ github.token }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/changelog-generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
permissions:
id-token: write
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- name: Determine PR source
id: source
env:
Expand Down Expand Up @@ -78,6 +81,7 @@ jobs:

- name: Install changelog dependencies
if: steps.source.outputs.same_repo == 'true' && steps.existing.outputs.found == 'false'
# zizmor: ignore[adhoc-packages] -- workflow-only CLI
run: |
corepack enable
corepack prepare pnpm@11.0.8 --activate
Expand Down Expand Up @@ -169,8 +173,12 @@ jobs:
if: always() && startsWith(github.event.label.name, 'changelog:')
runs-on: ubuntu-latest
permissions:
id-token: write
pull-requests: write
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- name: Comment for fork PRs
if: github.event.pull_request.head.repo.full_name != github.repository
env:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ permissions:
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ jobs:
if: always()
needs: [code, types, tests]
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- name: Check required jobs
run: |
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
Expand All @@ -30,7 +36,13 @@ jobs:
code:
name: Code
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
Expand All @@ -53,7 +65,13 @@ jobs:
types:
name: Types
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
Expand All @@ -79,7 +97,13 @@ jobs:
tests:
name: Tests
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/dependency-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Dependency Scan

"on":
pull_request:

permissions: {}

jobs:
dependency-scan:
uses: tempoxyz/gh-actions/.github/workflows/dependency-scan.yml@25cce154e7fb10f99361a166468a6c56b9c31aa3
permissions:
contents: read
id-token: write
4 changes: 4 additions & 0 deletions .github/workflows/friction-log.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
issues: write
pull-requests: write

steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- name: Clone repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
contents: read
id-token: write
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
Expand Down Expand Up @@ -91,7 +94,11 @@ jobs:
permissions:
actions: write
contents: write
id-token: write
steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@05c669ce878b8719779a28fe7375ba85822403f8

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/scan-github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Scan GitHub Actions

on:
pull_request:
paths:
- ".github/**"
push:
branches:
- main
paths:
- ".github/**"
schedule:
- cron: "17 9 * * 1"
workflow_dispatch:

permissions: {}

jobs:
scan:
if: ${{ github.event_name != 'schedule' || github.repository == 'tempoxyz/wallet-cli' }}
uses: tempoxyz/gh-actions/.github/workflows/scan-github-actions.yml@6a4184039b7a7537d35ace0badc96764d5a1d4d0
permissions:
actions: read
contents: read
id-token: write