Skip to content

Commit

Permalink
git: Fixed CI permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jan 11, 2025
1 parent b23a0fe commit 4b6ff68
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@ jobs:
win:
runs-on: windows-2022
name: 🪟 Windows MINGW64

defaults:
run:
shell: msys2 {0}

env:
CCACHE_DIR: "${{ github.workspace }}/.ccache"

permissions:
id-token: write
attestations: write

steps:
- name: 🧰 Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -128,12 +135,16 @@ jobs:
win-plugin-template-test:
runs-on: windows-2022
name: 🧪 Plugin Template Test

defaults:
run:
shell: msys2 {0}

needs: win

env:
IMHEX_SDK_PATH: "${{ github.workspace }}/out/sdk"

steps:
- name: 🧰 Checkout ImHex
uses: actions/checkout@v4
Expand Down Expand Up @@ -182,6 +193,10 @@ jobs:
macos:
runs-on: macos-13

permissions:
id-token: write
attestations: write

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -338,8 +353,10 @@ jobs:
macos-arm64-build:
runs-on: ubuntu-24.04
name: 🍎 macOS 13 arm64

outputs:
IMHEX_VERSION: ${{ steps.build.outputs.IMHEX_VERSION }}

steps:
- name: 🧰 Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -383,8 +400,14 @@ jobs:
runs-on: macos-13
name: 🍎 macOS 13 arm64 Packaging
needs: macos-arm64-build

env:
IMHEX_VERSION: ${{ needs.macos-arm64-build.outputs.IMHEX_VERSION }}

permissions:
id-token: write
attestations: write

steps:
- name: ⬇️ Download artifact
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -462,6 +485,10 @@ jobs:
image: "ubuntu:${{ matrix.release_num }}"
options: --privileged

permissions:
id-token: write
attestations: write

steps:
- name: ⬇️ Install setup dependencies
run: apt update && apt install -y git curl
Expand Down Expand Up @@ -539,6 +566,11 @@ jobs:
appimage:
runs-on: ubuntu-24.04
name: ⬇️ AppImage

permissions:
id-token: write
attestations: write

steps:
- name: 🧰 Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -592,6 +624,10 @@ jobs:
container:
image: archlinux:base-devel

permissions:
id-token: write
attestations: write

steps:
- name: ⬇️ Update all packages
run: |
Expand Down Expand Up @@ -719,6 +755,10 @@ jobs:
image: "almalinux:9"
options: --privileged --pid=host --security-opt apparmor=unconfined

permissions:
id-token: write
attestations: write

steps:
# This, together with the `--pid=host --security-opt apparmor=unconfined` docker options is required to allow
# fedpkg to work inside a Docker container running on Ubuntu again.
Expand Down

0 comments on commit 4b6ff68

Please sign in to comment.