File tree Expand file tree Collapse file tree 7 files changed +28
-4
lines changed
Expand file tree Collapse file tree 7 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 1+ scan :
2+ skip-dirs :
3+ - .mypy_cache
Original file line number Diff line number Diff line change 1+ rules :
2+ dangerous-triggers : # to allow pull_request_target for auto-labelling fork pull requests
3+ ignore :
4+ - auto-labeler.yml
5+ - pr-title.yml
6+ - release.yml
Original file line number Diff line number Diff line change 2727 steps :
2828 - name : Checkout code
2929 uses : actions/checkout@v5.0.0
30+ with :
31+ persist-credentials : false
3032
3133 - name : Set up Python
32- uses : actions/setup-python@v5.6 .0
34+ uses : actions/setup-python@v6.0 .0
3335 with :
3436 python-version : 3.12
3537
Original file line number Diff line number Diff line change 1515 runs-on : ubuntu-latest
1616 steps :
1717 - uses : actions/checkout@v5.0.0
18+ with :
19+ persist-credentials : false
1820 - name : Build the Docker image
1921 run : docker build . --file Dockerfile --platform linux/amd64
Original file line number Diff line number Diff line change 2222 steps :
2323 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2424 - name : Set up Python ${{ matrix.python-version }}
25- uses : actions/setup-python@v5.6 .0
25+ uses : actions/setup-python@v6.0 .0
2626 with :
2727 python-version : ${{ matrix.python-version }}
2828 - name : Install dependencies
Original file line number Diff line number Diff line change 2222 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2323 with :
2424 fetch-depth : 0
25+ persist-credentials : false
2526 - name : Setup Python
26- uses : actions/setup-python@v5.6 .0
27+ uses : actions/setup-python@v6.0 .0
2728 with :
2829 python-version : " 3.12"
2930 - name : Install dependencies
Original file line number Diff line number Diff line change @@ -9,7 +9,17 @@ COPY requirements.txt *.py /action/workspace/
99RUN python3 -m pip install --no-cache-dir -r requirements.txt \
1010 && apt-get -y update \
1111 && apt-get -y install --no-install-recommends git=1:2.39.5-0+deb12u2 \
12- && rm -rf /var/lib/apt/lists/*
12+ && rm -rf /var/lib/apt/lists/* \
13+ && addgroup --system appuser \
14+ && adduser --system --ingroup appuser --home /action/workspace --disabled-login appuser \
15+ && chown -R appuser:appuser /action/workspace
16+
17+ # Run the action as a non-root user
18+ USER appuser
19+
20+ # Add a simple healthcheck to satisfy container scanners
21+ HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
22+ CMD python3 -c "import os,sys; sys.exit(0 if os.path.exists('/action/workspace/evergreen.py') else 1)"
1323
1424CMD ["/action/workspace/evergreen.py" ]
1525ENTRYPOINT ["python3" , "-u" ]
You can’t perform that action at this time.
0 commit comments