From e8e8bfa0966cd6b2bf827620aad6df7fb5339b36 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Tue, 23 Jan 2024 22:03:33 -0500 Subject: [PATCH] ci: Allow write for contents and id-token --- .github/workflows/build.yml | 3 +++ .github/workflows/tag.yml | 3 +++ Earthfile | 7 ++++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c710ece..8d10b8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,9 @@ env: jobs: build: + permissions: + id-token: write # Enable OIDC + contents: write timeout-minutes: 30 runs-on: ubuntu-latest diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 44f720c..6a7757e 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -10,6 +10,9 @@ env: jobs: tag: + permissions: + id-token: write # Enable OIDC + contents: write timeout-minutes: 60 runs-on: ubuntu-latest diff --git a/Earthfile b/Earthfile index 7dded70..31e301f 100644 --- a/Earthfile +++ b/Earthfile @@ -53,7 +53,12 @@ install: SAVE ARTIFACT target/$BUILD_TARGET/release/bb common: - FROM registry.gitlab.com/wunker-bunker/cargo-builder + FROM rust + + RUN apt-get update && \ + apt-get install -y musl-dev && \ + rustup component add clippy && \ + rustup target add x86_64-unknown-linux-musl WORKDIR /app COPY --keep-ts --dir src/ templates/ /app