* ecf7f5702b Release 27.1 * ca08e2ccef docs: add notes on nsresourced in execution flow * 146b5dd4de docs: add a few notes on package manager specific behaviour * 344e42ee20 Update NEWS * dde1bf020f debian: fix debian-security/debug url when using a mirror * 699aa3b565 mkosi: upgrade debug message about fallback path to info * cb6da3f3ce mkosi: move fallback environment variable check to bypass nsresourced fully * 88c716a6b9 config: add delegate_ranges * f4de9a102a mkosi: use the foreign UID range only when requested when running as root * d091fed134 mkosi: only delegate UID ranges if we're not already root * 165bc99675 sandbox: rename delegate to delegate_ranges * bba53c50d0 sandbox: use equality check instead of boolean not for delegate * a033d03f59 summary: add foreign uid range * f13e96eb95 user: drop unused variable SUBRANGE * 847d113863 mkosi-obs: Only configure MakeScriptsExecutable in the main image * 568b1bce56 dnf: Only read repositories and variables from the sandbox tree * 938d6a1c21 obs: use policy signing data when available * 19d045e5e9 Rename sysupdate configuration files to .transfer * 9539f1771a action: bump fallback apk version to 3.0.8 * 8de4d25596 sandbox: add force_fallback to acquire_privileges and wire it up via env * af97d6ffef opensuse: tolerate missing RPM keyring * 0f2b7e0656 initrd: don't fail when encountering directories among ucode files * 5240191893 Allow using SignInitrdPCRs with SplitArtifacts=pcrs * ce90009686 Bump ukify required version from 261.999 to 262~ for SignInitrdPCRs * 58bbd63aca news: fix v27 `DiskType=` setting typo * 1da3299aec tests: skip test_fork_and_wait if on rc 1 * 5658e7abc9 Bump version to 28~devel * 4736cd8361 Release 27 * 97f305bf0a action: make shell style consistent * dd7140cbae action: only use apk version from API if non-empty * 2cfe0cefb8 news: update NEWS * 7bca598fa4 action: support container-based self-hosted runners * 08c86a25e1 action: bump fallback APK version * cc0fcef38f action: reduce timeouts and number of API calls * 211993d5d2 action: download latest version of apk | * f33cc45db3 Add ToolsTreeSnapshot= for pinning the default tools tree | * ddfc5a2cb5 tests: join options and their values with f-strings | * a497ff0251 doc: add missing matchers * | 589226cfd4 apk: disable grub's update-grub trigger during package installation / | * 595451bb4b debian: add new split-out systemd packages | * 7ce1851901 Revert "mkosi-tools: Install systemd-tpm on Debian" | * 50a1137be5 ci: pin resolved release for integration tests | * e30b0a0ba4 tests: drop obsolete @ prefix | * e7f4d57fac news: update NEWS |/ * bf2addb2ec build(deps): bump aws-actions/configure-aws-credentials * a58ded6a2a build(deps): bump actions/checkout from 6.0.2 to 7.0.1 * 9b7d87a170 add support for prebuilt UKIs * 75fdb9be15 mkosi-tools: Install systemd-tpm on Debian * d5ff0d0d98 Fall back to unprivileged user namespace on polkit denial * 0e4d5546ac Bump 261~devel version checks to 261 * 180d4a5329 Use systemd nightly OBS version in signing PCR policies auto detection * f7401bdc8d Add support for signing PCR policies for the initrd * 33d17b2b92 sandbox: Don't create shared propagation peer group * a078088f8e sandbox: Declare MS_PRIVATE as well * e1e9eafc87 kmod: eliminate duplication in calls to modinfo * df68b27e8e tools: add mount to Debian tools tree * 205dcedd45 util: don't drop single-character variable names in read_env_file * 35a9d38ea0 distribution: report the actual architecture in unsupported-arch errors * d4f44d212c sandbox: handle case where dev node for tty doesn't exist better * acf08c5eca build(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 * b3ec53743a tests: Pass --output-directory to vm() and boot() * 9bc430a7fa config: Isolate build history per output directory * fd3d9bfe57 tests: Add regression test for build history lookup via configured output dir | * 55ab00bb13 Fix tar exclude patterns for apivfs paths |/ * 699da862f8 sandbox: Split a chroot() context manager out of chase() * 70ce10d132 sandbox: Default FSOperation.execute oldroot/newroot to / * 610b38538f Forbid AI attribution in commit messages * b7425bbe42 ci: Sync claude-review workflow with systemd * b9d4c06239 action: Make apk installation configurable and reliable again (cherry picked from commit 280dd84243c387af7510b727d123390fa9c61dc7)
112 lines
3.7 KiB
YAML
112 lines
3.7 KiB
YAML
---
|
|
# vi: ts=2 sw=2 et:
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
# https://github.com/marketplace/actions/super-linter
|
|
name: Lint Code Base
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- v[0-9]+-stable
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
readme-notice:
|
|
name: Check for README notice
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: Repo checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Check that README.md has no review notice
|
|
run: |
|
|
if grep -F "Remove this line to confirm you've reviewed this PR before submitting." README.md >/dev/null; then
|
|
echo "::error file=README.md,line=1::Remove the review notice from README.md before merging."
|
|
exit 1
|
|
fi
|
|
|
|
build:
|
|
name: Lint Code Base
|
|
runs-on: ubuntu-24.04
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
steps:
|
|
- name: Repo checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
|
|
with:
|
|
# We need a full repo clone
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- name: Lint Code Base
|
|
uses: super-linter/super-linter/slim@4ce20838b8ab83717e78138c5b3a1407148e0918
|
|
env:
|
|
DEFAULT_BRANCH: main
|
|
MULTI_STATUS: false
|
|
VALIDATE_ALL_CODEBASE: false
|
|
VALIDATE_GITHUB_ACTIONS: true
|
|
LINTER_RULES_PATH: .github/linters
|
|
GITHUB_ACTIONS_CONFIG_FILE: actionlint.yml
|
|
ENABLE_GITHUB_PULL_REQUEST_SUMMARY_COMMENT: false
|
|
|
|
- uses: systemd/mkosi@ecf7f5702bb2052b7a69cab3fe7d37bc3b9ad77b
|
|
|
|
- name: Check that tabs are not used in Python code
|
|
run: sh -c '! git grep -P "\\t" -- src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py'
|
|
|
|
- name: Build tools tree
|
|
run: |
|
|
tee mkosi/mkosi.local.conf <<EOF
|
|
[Build]
|
|
ToolsTreeDistribution=fedora
|
|
ToolsTreeRelease=rawhide
|
|
EOF
|
|
|
|
mkosi -f box -- true
|
|
|
|
- name: Run mypy
|
|
run: |
|
|
mkosi box -- mypy --version
|
|
mkosi box -- mypy src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
|
|
|
|
- name: Run ruff format
|
|
run: |
|
|
mkosi box -- ruff --version
|
|
if ! mkosi box -- ruff format --check
|
|
then
|
|
echo "Please run 'ruff format' on the above files or apply the diffs below manually"
|
|
mkosi box -- ruff format --check --quiet --diff
|
|
fi
|
|
|
|
- name: Run ruff check
|
|
run: |
|
|
mkosi box -- ruff --version
|
|
if ! mkosi box -- ruff check
|
|
then
|
|
echo "Please fix the errors shown by 'ruff check' on the above files or add noqa comments where appropriate."
|
|
echo "Diffs for fixes that can be programmatically generated are shown below:"
|
|
mkosi box -- ruff check --diff
|
|
fi
|
|
|
|
- name: Configure meson
|
|
run: mkosi box -- env CC=clang CXX=clang++ meson setup build
|
|
|
|
- name: Run clang-tidy
|
|
run: mkosi box -- meson test -C build --suite=clang-tidy --print-errorlogs --no-stdsplit --quiet
|
|
|
|
- name: Run coccinelle checks
|
|
run: mkosi box -- meson test -C build --suite=coccinelle --print-errorlogs --no-stdsplit
|
|
|
|
- name: Run man-rules checks
|
|
run: |
|
|
mkosi box -- ninja -C build update-man-rules
|
|
git diff --exit-code -- man/rules/meson.build
|