Skip to content
Draft
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
18 changes: 10 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:
- "[0-9]+.[0-9]+.[0-9]+*"

permissions:
contents: write

contents: read

jobs:
build-macos:
Expand All @@ -17,13 +16,13 @@ jobs:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- run: git fetch --tags --force origin ${{ github.ref }}
- run: git checkout ${{ github.ref }}
persist-credentials: false
- run: git fetch --tags --force origin ${GITHUB_REF}
- run: git checkout ${GITHUB_REF}
- run: git describe --always HEAD
- uses: cachix/install-nix-action@616559265b40713947b9c190a8ff4b507b5df49b # v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@def9f5a5c6a6b8751c0534e8813a5d0ad2635660 # v11
- run: nix develop --command make crossbuild_mac
- run: nix develop --command make crossbuild_mac_bundles
- name: 'Upload Artifacts'
Expand All @@ -39,13 +38,13 @@ jobs:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- run: git fetch --tags --force origin ${{ github.ref }}
- run: git checkout ${{ github.ref }}
persist-credentials: false
- run: git fetch --tags --force origin ${GITHUB_REF}
- run: git checkout ${GITHUB_REF}
- run: git describe --always HEAD
- uses: cachix/install-nix-action@616559265b40713947b9c190a8ff4b507b5df49b # v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@def9f5a5c6a6b8751c0534e8813a5d0ad2635660 # v11
- run: nix develop --command make crossbuild
- name: 'Upload Artifacts'
id: upload
Expand All @@ -57,11 +56,14 @@ jobs:
release:
needs: [build-macos, build-others]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
persist-credentials: false

- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build and test

permissions:
contents: read

on:
pull_request:
push:
Expand All @@ -9,6 +12,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: cachix/install-nix-action@616559265b40713947b9c190a8ff4b507b5df49b # v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -21,6 +26,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: cachix/install-nix-action@616559265b40713947b9c190a8ff4b507b5df49b # v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -31,6 +38,8 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: cachix/install-nix-action@616559265b40713947b9c190a8ff4b507b5df49b # v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: GitHub Actions Security Analysis with zizmor

on:
push:
branches: ["main"]
pull_request:
branches: ["**"]

permissions: {}

jobs:
zizmor:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false

- uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
Loading