Skip to content

Commit e325f11

Browse files
Some nits
1 parent 92a107b commit e325f11

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/unit-test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ on:
77
branches:
88
- main
99

10-
permissions:
11-
checks: write
12-
contents: write
13-
security-events: write
10+
permissions: read-all
1411

1512
jobs:
1613
tests:
1714
name: Execute unit tests
1815
runs-on: ${{ matrix.os }}
16+
permissions:
17+
contents: write
1918
strategy:
2019
fail-fast: false
2120
matrix:
@@ -45,6 +44,7 @@ jobs:
4544
build-scan-terms-of-use-agree: 'yes'
4645

4746
- name: Execute tests
47+
shell: bash
4848
run: ./gradlew test
4949

5050
- name: Upload coverage report
@@ -60,6 +60,9 @@ jobs:
6060
name: Perform Qodana analysis
6161
needs: tests
6262
runs-on: ubuntu-latest
63+
permissions:
64+
checks: write
65+
security-events: write
6366
steps:
6467
- name: Checkout code changes
6568
uses: actions/checkout@v5
@@ -74,7 +77,7 @@ jobs:
7477
path: .qodana/code-coverage
7578

7679
- name: Execute analysis
77-
uses: JetBrains/qodana-action@main
80+
uses: JetBrains/qodana-action@v2024.2
7881
env:
7982
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
8083
with:

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ FROM eclipse-temurin:24-alpine AS builder
55
ARG LIBWEBP_VERSION=1.6.0
66
ARG LIBWEBP_SHA256=1c5ffab71efecefa0e3c23516c3a3a1dccb45cc310ae1095c6f14ae268e38067
77
ARG LIBWEBP_URL="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$LIBWEBP_VERSION-linux-x86-64.tar.gz"
8-
ARG LIBWEBP_FILE="libwebp-$LIBWEBP_VERSION-linux-x86-64.tar.gz"
98

109
WORKDIR /app
1110
RUN apk --no-cache add binutils curl tar
12-
RUN curl -L --fail --retry 3 --retry-delay 5 "$LIBWEBP_URL" -O && \
13-
echo "$LIBWEBP_SHA256 $LIBWEBP_FILE" | sha256sum -c - && \
14-
tar -xzf "$LIBWEBP_FILE" --one-top-level=libwebp --strip-components=1 && \
15-
rm "$LIBWEBP_FILE"
11+
RUN curl -L --fail --retry 3 --retry-delay 5 "$LIBWEBP_URL" -o /tmp/libwebp.tar.gz && \
12+
echo "$LIBWEBP_SHA256 /tmp/libwebp.tar.gz" | sha256sum -c - && \
13+
tar -xzf /tmp/libwebp.tar.gz --one-top-level=libwebp --strip-components=1 && \
14+
rm /tmp/libwebp.tar.gz
1615

1716
COPY . .
1817
RUN --mount=type=cache,target=/root/.gradle ./gradlew jlink shadowJar

0 commit comments

Comments
 (0)