Skip to content

Commit 07c0270

Browse files
committed
fix(ci/security): restore ci actions tags and implement read-only docker permissions
1 parent 54aaadf commit 07c0270

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ jobs:
2525
--health-retries 5
2626
2727
steps:
28-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
28+
- uses: actions/checkout@v4
2929

3030
- name: Install uv
31-
uses: astral-sh/setup-uv@857947113170757f49551c65d6484e5088f117c0 # v4.2.0
32-
with:
33-
enable-cache: true
31+
uses: astral-sh/setup-uv@v5
3432

3533
- name: Set up Python 3.12
36-
uses: actions/setup-python@f6742a91b3c2a4176985474360e200155b9e0f6b # v5.1.1
34+
uses: actions/setup-python@v5
3735
with:
3836
python-version: "3.12"
3937

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ WORKDIR /app
1515
RUN useradd -m -u 1000 appuser && \
1616
chown appuser:appuser /app
1717

18-
COPY --from=builder --chown=appuser:appuser /app/.venv /app/.venv
18+
COPY --from=builder --chown=appuser:appuser --chmod=555 /app/.venv /app/.venv
1919

2020
ENV PATH="/app/.venv/bin:$PATH"
2121

22-
COPY --chown=appuser:appuser src/ ./src/
23-
COPY --chown=appuser:appuser migrations/ ./migrations/
24-
COPY --chown=appuser:appuser alembic.ini pyproject.toml uv.lock ./
25-
COPY --chown=appuser:appuser scripts/ ./scripts/
22+
COPY --chown=appuser:appuser --chmod=555 src/ ./src/
23+
COPY --chown=appuser:appuser --chmod=555 migrations/ ./migrations/
24+
COPY --chown=appuser:appuser --chmod=555 alembic.ini pyproject.toml uv.lock ./
25+
COPY --chown=appuser:appuser --chmod=555 scripts/ ./scripts/
2626

2727
USER appuser
2828

0 commit comments

Comments
 (0)