Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 Fix Scala Steward running on ubuntu-latest #146

Merged
merged 4 commits into from
Dec 18, 2024
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- uses: sbt/setup-sbt@v1
- uses: VirtusLab/scala-cli-setup@v1
with:
jvm: 21
Expand Down Expand Up @@ -60,6 +61,7 @@ jobs:
password: ${{ github.token }}

- uses: coursier/cache-action@v6
- uses: sbt/setup-sbt@v1
- uses: VirtusLab/scala-cli-setup@v1
with:
jvm: 21
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

Expand All @@ -11,6 +12,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
name: Launch Scala Steward
steps:
- name: Setup SBT
uses: sbt/setup-sbt@v1
- name: Launch Scala Steward
uses: scala-steward-org/scala-steward-action@v2
with:
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"files.trimFinalNewlines": true,
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"files.encoding": "utf8"
"files.encoding": "utf8",
"files.watcherExclude": {
"**/target": true
}
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM eclipse-temurin:21

RUN adduser --system --group --uid 1000 --shell /bin/bash dawn
RUN adduser --system --group --uid 1001 --shell /bin/bash dawn

WORKDIR /app
COPY --chown=0:0 ./target/dawn-patrol ./dawn-patrol

USER dawn

ENV HF_API_KEY=

Check warning on line 10 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and push Docker

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "HF_API_KEY") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
ENV OPENAI_TOKEN=

Check warning on line 11 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and push Docker

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "OPENAI_TOKEN") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/

ENTRYPOINT [ "/app/dawn-patrol" ]
4 changes: 2 additions & 2 deletions helm/dawn-patrol/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ podLabels:
admission.datadoghq.com/enabled: 'false'

podSecurityContext:
fsGroup: 1000
fsGroup: 1001

securityContext:
# readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
runAsUser: 1001
# capabilities:
# drop:
# - ALL
Expand Down
Loading