added id-token: write

This commit is contained in:
2025-10-22 10:46:15 +02:00
parent 28283fa8bc
commit a0d96925c5
2 changed files with 4 additions and 6 deletions

View File

@@ -113,6 +113,7 @@ jobs:
permissions: permissions:
contents: write contents: write
packages: write packages: write
id-token: write
steps: steps:
- name: Checkout code - name: Checkout code

View File

@@ -5,7 +5,7 @@ WORKDIR /app/backend
# Install Python + OR-Tools # Install Python + OR-Tools
RUN apt-get update && apt-get install -y python3 python3-pip build-essential \ RUN apt-get update && apt-get install -y python3 python3-pip build-essential \
&& pip install --no-cache-dir ortools && pip install --no-cache-dir ortools
# Create symlink so python3 is callable as python # Create symlink so python3 is callable as python
RUN ln -sf /usr/bin/python3 /usr/bin/python RUN ln -sf /usr/bin/python3 /usr/bin/python
@@ -27,9 +27,6 @@ RUN npm run build
# Verify Python and OR-Tools installation # Verify Python and OR-Tools installation
RUN python -c "from ortools.sat.python import cp_model; print('OR-Tools installed successfully')" RUN python -c "from ortools.sat.python import cp_model; print('OR-Tools installed successfully')"
#RUN python3 -c "from ortools.sat.python import cp_model; print('OR-Tools installed successfully')"
# Frontend build stage # Frontend build stage
FROM node:20-bullseye AS frontend-builder FROM node:20-bullseye AS frontend-builder
@@ -77,8 +74,8 @@ COPY ecosystem.config.js ./
# Create a non-root user # Create a non-root user
RUN addgroup -g 1001 -S nodejs && \ RUN addgroup -g 1001 -S nodejs && \
adduser -S schichtplan -u 1001 && \ adduser -S schichtplan -u 1001 && \
chown -R schichtplan:nodejs /app chown -R schichtplan:nodejs /app
USER schichtplan USER schichtplan