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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
lint:
name: Lint
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

permissions:
contents: write
pull-requests: write
id-token: write
permissions: {}

jobs:
# ──── On develop push: manage version PR and create release PR ────
version:
name: Version
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
env:
LEFTHOOK: "0"
Expand Down Expand Up @@ -81,6 +81,8 @@ jobs:
if: |
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
github.event_name == 'workflow_dispatch'
permissions:
contents: read
runs-on: ubuntu-latest
outputs:
should_publish: ${{ steps.check.outputs.should_publish }}
Expand All @@ -107,6 +109,8 @@ jobs:
name: Build - ${{ matrix.settings.target }}
needs: check
if: needs.check.outputs.should_publish == 'true'
permissions:
contents: read
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -204,6 +208,9 @@ jobs:
name: Publish
needs: [check, build]
if: needs.check.outputs.should_publish == 'true'
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Expand Down
Loading