Skip to content

Fix Zizmor security findings in GitHub Actions workflows & OpenSSF Sc… #492

Fix Zizmor security findings in GitHub Actions workflows & OpenSSF Sc…

Fix Zizmor security findings in GitHub Actions workflows & OpenSSF Sc… #492

Workflow file for this run

name: Upload to S3
on:
push:
branches: [master]
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
env:
AWS_S3_ACCESS_KEY: ${{ secrets.AWS_S3_ACCESS_KEY }}
AWS_S3_SECRET_KEY: ${{ secrets.AWS_S3_SECRET_KEY }}
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.11"
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install --upgrade pip setuptools
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: pip cache
# zizmor: ignore[cache-poisoning]
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
- name: Install dependencies
run: |
pip install -r requirements.txt --progress-bar off --upgrade
pip install keras --upgrade
- name: Build website
run: |
python scripts/autogen.py make
- name: Upload files
run: |
python scripts/upload.py