Skip to content

Commit

Permalink
ci: Allow write for contents and id-token
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Jan 24, 2024
1 parent 6a4c89d commit e8e8bfa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ env:

jobs:
build:
permissions:
id-token: write # Enable OIDC
contents: write
timeout-minutes: 30
runs-on: ubuntu-latest

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ env:

jobs:
tag:
permissions:
id-token: write # Enable OIDC
contents: write
timeout-minutes: 60
runs-on: ubuntu-latest

Expand Down
7 changes: 6 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8e8bfa

Please sign in to comment.