Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
86bffec
ci(release): Switch from action-prepare-release to Craft
BYK Jan 9, 2026
04fd9dc
ci(release): Restore GitHub App token authentication
BYK Jan 9, 2026
2e7c5c5
fix: Pin actions to SHA and add permissions blocks
BYK Jan 10, 2026
627ec46
fix: Add packages:write permission for GHCR workflows
BYK Jan 10, 2026
e0207bc
fix: Use correct action version SHAs (restore original versions)
BYK Jan 10, 2026
c33adb1
fix: Use correct action version SHAs (restore original versions)
BYK Jan 10, 2026
239d9cb
fix: Clean up action version comments
BYK Jan 12, 2026
c139dfe
Update Craft SHA to 1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce
BYK Jan 13, 2026
cdfec01
Add explicit permissions block to build.yml
BYK Jan 13, 2026
426849b
Add explicit permissions block to ci.yml
BYK Jan 13, 2026
66d8028
Add explicit permissions block to codeql-analysis.yml
BYK Jan 13, 2026
5c739bd
Add explicit permissions block to rust-toolchain-update.yml
BYK Jan 13, 2026
1a3a9ea
Add explicit permissions block to test_node.yml
BYK Jan 13, 2026
2efc5b5
Revert permissions changes to build.yml
BYK Jan 13, 2026
635e0b5
Revert permissions changes to ci.yml
BYK Jan 13, 2026
1be85ab
Revert permissions changes to codeql-analysis.yml
BYK Jan 13, 2026
ccbcb2e
Revert permissions changes to rust-toolchain-update.yml
BYK Jan 13, 2026
3b0731f
Revert permissions changes to test_node.yml
BYK Jan 13, 2026
8cdafc8
fix: clean up extraneous changes from migration script
BYK Jan 13, 2026
a310324
fix: revert extraneous changes to non-release workflow files
BYK Jan 14, 2026
eb1d97b
fix: clean up release.yml formatting and version comments
BYK Jan 14, 2026
43ca365
build(craft): Update Craft action to c6e2f04
BYK Jan 14, 2026
2f0b664
add newline and full version number
szokeasaurusrex Jan 15, 2026
30a6b27
Merge branch 'master' into ci/migrate-to-craft-action
szokeasaurusrex Jan 15, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

- name: Audit dependencies
uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998 # 2.0.0
Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- release/**

permissions:
contents: write
pull-requests: write

jobs:
linux:
strategy:
Expand All @@ -31,7 +35,7 @@ jobs:
image: messense/rust-musl-cross:${{ matrix.container }}

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

- name: Add Rustup Target
run: |
Expand Down Expand Up @@ -67,7 +71,7 @@ jobs:
runs-on: macos-14

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

- name: Add Rustup Target
run: rustup target add ${{ matrix.target }}
Expand Down Expand Up @@ -154,7 +158,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

- name: Install `rcodesign`
run: |
Expand Down Expand Up @@ -218,7 +222,7 @@ jobs:
runs-on: windows-2022

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

# When rustup is updated, it tries to replace its binary, which on Windows is somehow locked.
# This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029
Expand Down Expand Up @@ -250,9 +254,9 @@ jobs:
needs: [linux, macos, macos_universal, windows]

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # 6.1.0
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 # 6.1.0
with:
node-version: '20.10.0'

Expand Down Expand Up @@ -283,7 +287,7 @@ jobs:
name: python (base)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1
- name: Add Rustup Target
run: rustup target add x86_64-unknown-linux-musl
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # 6.1.0
Expand All @@ -301,7 +305,7 @@ jobs:
runs-on: ubuntu-24.04
needs: [linux, sign-macos-binaries, windows, python-base]
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # 6.1.0
with:
python-version: '3.11'
Expand All @@ -327,8 +331,8 @@ jobs:
runs-on: ubuntu-24.04
needs: [linux, sign-macos-binaries, windows]
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # 6.1.0
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 # 6.1.0
with:
node-version: '20.10.0'
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # 7.0.0
Expand Down Expand Up @@ -379,7 +383,7 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # 3.12.0
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/changelog-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Changelog Preview
on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
- labeled
permissions:
contents: write
pull-requests: write

jobs:
changelog-preview:
uses: getsentry/craft/.github/workflows/changelog-preview.yml@v2
secrets: inherit
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ concurrency:
env:
RUSTFLAGS: -Dwarnings

permissions:
contents: write
pull-requests: write

jobs:
lint:
name: Lint
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
schedule:
- cron: '32 17 * * 4'

permissions:
contents: write
pull-requests: write

jobs:
analyze:
name: Analyze
Expand All @@ -33,7 +37,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

- name: Setup Rust Toolchain
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-ghcr-latest-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
release:
types: [released]

permissions:
packages: write
contents: write
pull-requests: write

jobs:
release-ghcr-latest-tag:
runs-on: ubuntu-24.04
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-ghcr-version-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
release:
types: [prereleased, released]

permissions:
packages: write
contents: write
pull-requests: write

jobs:
release-ghcr-version-tag:
runs-on: ubuntu-24.04
Expand Down
52 changes: 28 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,38 @@ on:
workflow_dispatch:
inputs:
version:
description: Version to release
required: true
description: Version to release (or "auto")
required: false
Comment on lines 5 to +7

This comment was marked as outdated.

force:
description: Force a release even when there are release-blockers (optional)
description: Force a release even when there are release-blockers
required: false
merge_target:
description: Target branch to merge into. Uses the default branch as a fallback (optional)
description: Target branch to merge into
required: false
permissions:
contents: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-24.04
name: 'Release a new version'
runs-on: ubuntu-latest
name: Release a new version
steps:
- name: Get auth token
id: token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
with:
token: ${{ steps.token.outputs.token }}
fetch-depth: 0
- name: Prepare release
uses: getsentry/action-prepare-release@c8e1c2009ab08259029170132c384f03c1064c0e # 1.6.6
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}
merge_target: ${{ github.event.inputs.merge_target }}
- name: Get auth token
id: token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
token: ${{ steps.token.outputs.token }}
fetch-depth: 0
- name: Prepare release
uses: getsentry/craft@1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce # v2
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
version: ${{ inputs.version }}
force: ${{ inputs.force }}
merge_target: ${{ inputs.merge_target }}
6 changes: 5 additions & 1 deletion .github/workflows/rust-toolchain-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
# Run weekly on Mondays at 00:00 UTC
- cron: '0 0 * * 1'

permissions:
contents: write
pull-requests: write

jobs:
check-and-update:
name: Check for Rust toolchain updates
Expand All @@ -17,7 +21,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/swift-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: macos-15
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1
- name: Run tests
working-directory: apple-catalog-parsing/native/swift/AssetCatalogParser
run: swift test
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

- name: Setup Rust Toolchain
run: |
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/test_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@ on:
description: 'Matrix job result'
value: ${{ jobs.test_node.result }}

permissions:
contents: write
pull-requests: write

jobs:
type_check:
name: Type Check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

- name: Use Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # 6.1.0
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 # 6.1.0
with:
node-version-file: package.json

Expand All @@ -41,10 +45,10 @@ jobs:
name: Prepare Build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

- name: Use Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # 6.1.0
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 # 6.1.0
with:
node-version-file: package.json

Expand Down Expand Up @@ -78,10 +82,10 @@ jobs:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 # 6.0.1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # 6.1.0
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6 # 6.1.0
with:
node-version: ${{ matrix.node-version }}

Expand Down
Loading