diff --git a/.github/workflows/clang-addresssanitizer.yml b/.github/workflows/clang-addresssanitizer.yml index 33807f9b..2d89681d 100644 --- a/.github/workflows/clang-addresssanitizer.yml +++ b/.github/workflows/clang-addresssanitizer.yml @@ -21,6 +21,7 @@ jobs: uses: actions/checkout@v4 with: submodules: true + persist-credentials: false - name: Install system dependencies run: sudo apt update && sudo apt install pkg-config clang build-essential libxml2-dev libsqlite3-dev wget libssl-dev libcurl4 zlib1g-dev libcurl4-openssl-dev libonig-dev libzip-dev -y diff --git a/.github/workflows/clang-analyzer.yml b/.github/workflows/clang-analyzer.yml index 576b5d88..e6a6dec8 100644 --- a/.github/workflows/clang-analyzer.yml +++ b/.github/workflows/clang-analyzer.yml @@ -22,6 +22,7 @@ jobs: uses: actions/checkout@v4 with: submodules: true + persist-credentials: false - name: Install clang-tools and libmaxminddb run: sudo apt update && sudo apt-get install clang-tools libmaxminddb-dev diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index aacd8c40..7e28f1cf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,6 +18,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 + with: + persist-credentials: false - name: Install dependencies run: composer install --no-progress --prefer-dist --optimize-autoloader diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 811c2530..110e23de 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,6 +35,7 @@ jobs: uses: actions/checkout@v4 with: submodules: true + persist-credentials: false - name: Install libmaxminddb run: | diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml new file mode 100644 index 00000000..c09cf120 --- /dev/null +++ b/.github/workflows/zizmor.yml @@ -0,0 +1,32 @@ +name: GitHub Actions Security Analysis with zizmor + +on: + push: + branches: ["main"] + pull_request: + branches: ["**"] + +jobs: + zizmor: + name: zizmor latest via PyPI + runs-on: ubuntu-latest + permissions: + security-events: write + # required for workflows in private repositories + contents: read + actions: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: false + + - name: Run zizmor + run: uvx zizmor --format plain . + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}