Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ updates:
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
cooldown:
default-days: 7
24 changes: 19 additions & 5 deletions .github/workflows/backend-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Setup codebase
uses: plone/meta/.github/actions/setup_backend_uv@2.x
Expand All @@ -67,35 +69,47 @@ jobs:
id: ruff-format
shell: bash
run: |
uvx ruff@${{ inputs.version-ruff }} format --diff
uvx ruff@${INPUTS_VERSION_RUFF} format --diff

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand the indirection, but you got my attention here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's about template injection: https://docs.zizmor.sh/audits/#template-injection

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will also add this checks to cookieplone-templates.

env:
INPUTS_VERSION_RUFF: ${{ inputs.version-ruff }}

- name: Check lint
if: ${{ success() || failure() }}
id: ruff-lint
shell: bash
run: |
uvx ruff@${{ inputs.version-ruff }} check --diff
uvx ruff@${INPUTS_VERSION_RUFF} check --diff
env:
INPUTS_VERSION_RUFF: ${{ inputs.version-ruff }}

- name: Check XML / ZCML
if: ${{ success() || failure() }}
id: zpretty
shell: bash
run: |
uvx zpretty@${{ inputs.version-zpretty }} --check ${{ inputs.zpretty-check-path }} ${{ inputs.zpretty-options }}
uvx zpretty@${INPUTS_VERSION_ZPRETTY} --check ${INPUTS_ZPRETTY_CHECK_PATH} ${INPUTS_ZPRETTY_OPTIONS}
env:
INPUTS_VERSION_ZPRETTY: ${{ inputs.version-zpretty }}
INPUTS_ZPRETTY_CHECK_PATH: ${{ inputs.zpretty-check-path }}
INPUTS_ZPRETTY_OPTIONS: ${{ inputs.zpretty-options }}

- name: Check Package Metadata
if: ${{ success() || failure() }}
id: pyroma
shell: bash
run: |
uvx pyroma@${{ inputs.version-pyroma }} -d .
uvx pyroma@${INPUTS_VERSION_PYROMA} -d .
env:
INPUTS_VERSION_PYROMA: ${{ inputs.version-pyroma }}

- name: Check Python Versions
if: ${{ success() || failure() }}
id: py-versions
shell: bash
run: |
uvx check-python-versions@${{ inputs.version-check-python }} .
uvx check-python-versions@${INPUTS_VERSION_CHECK_PYTHON} .
env:
INPUTS_VERSION_CHECK_PYTHON: ${{ inputs.version-check-python }}

- name: Check typing
if: ${{ (success() || failure()) && inputs.check-typing }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/backend-pytest-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Setup codebase
uses: plone/meta/.github/actions/setup_backend_uv@2.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/backend-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Setup codebase
uses: plone/meta/.github/actions/setup_backend_uv@2.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/circular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install uv + caching
uses: astral-sh/setup-uv@v7.5.0
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/container-image-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Set up QEMU
uses: docker/setup-qemu-action@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/container-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Set up QEMU
uses: docker/setup-qemu-action@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/container-image-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Set up QEMU
uses: docker/setup-qemu-action@v4
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install uv + caching
uses: astral-sh/setup-uv@v7.5.0
with:
Expand All @@ -31,7 +33,9 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: install OS packages
if: inputs.os-packages != ''
run: sudo apt-get install -y ${{ inputs.os-packages }}
run: sudo apt-get install -y ${INPUTS_OS_PACKAGES}
env:
INPUTS_OS_PACKAGES: ${{ inputs.os-packages }}
- name: Initialize tox
run: |
if [ `uvx tox list --no-desc -f init|wc -l` = 1 ]; then uvx --with tox-uv tox -e init;else true; fi
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install uv + caching
uses: astral-sh/setup-uv@v7.5.0
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
working-directory: ${{ inputs.working-directory }}
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false

- name: Setup uv
uses: plone/meta/.github/actions/setup_uv@2.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false

- uses: actions/setup-python@v7
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/frontend-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
steps:
- name: Main checkout
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Setup uv
uses: plone/meta/.github/actions/setup_uv@2.x
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/frontend-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
steps:
- name: Main checkout
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Setup uv
uses: plone/meta/.github/actions/setup_uv@2.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/frontend-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
steps:
- name: Main checkout
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Setup uv
uses: plone/meta/.github/actions/setup_uv@2.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/frontend-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
steps:
- name: Main checkout
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Setup uv
uses: plone/meta/.github/actions/setup_uv@2.x
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/frontend-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
steps:
- name: Main checkout
uses: actions/checkout@v7
with:
persist-credentials: false

- name: Setup uv
uses: plone/meta/.github/actions/setup_uv@2.x
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/local.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: CI
on: [push]
permissions: {}

jobs:
qa:
Expand All @@ -10,6 +11,8 @@ jobs:
python-version: ["3.14"]
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install uv + caching
uses: astral-sh/setup-uv@v7.5.0
with:
Expand All @@ -29,6 +32,8 @@ jobs:
python-version: ["3.11", "3.14"]
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install uv + caching
uses: astral-sh/setup-uv@v7.5.0
with:
Expand All @@ -48,6 +53,8 @@ jobs:
python-version: ["3.14"]
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install uv + caching
uses: astral-sh/setup-uv@v7.5.0
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install uv + caching
uses: astral-sh/setup-uv@v7.5.0
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release_ready.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install uv + caching
uses: astral-sh/setup-uv@v7.5.0
with:
Expand Down
1 change: 1 addition & 0 deletions news/384.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Implement security measures from `zizmor` @gforcada
2 changes: 2 additions & 0 deletions src/plone/meta/default/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ updates:
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
cooldown:
default-days: 7
1 change: 1 addition & 0 deletions src/plone/meta/default/meta.yml.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Meta
permissions: {}

on:
push:
Expand Down