eBPF-based security platform
ci: run nothing on a schedule
Daniel Borkmann5d13fa98c302
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.ymlindex 27d52bb0..85a7a904 100644--- a/.github/workflows/coverity.yml+++ b/.github/workflows/coverity.yml@@ -1,10 +1,19 @@name: Coverity+# On the latest main only: a scan replaces the project's results on+# Coverity Scan, which a pull request's code should not, and the token is+# not given to a pull request from a fork.on:- schedule:- - cron: '0 3 * * 1'+ push:+ branches:+ - mainworkflow_dispatch:+# Only the newest push is worth a scan, as each replaces the last.+concurrency:+ group: ${{ github.workflow }}+ cancel-in-progress: true+permissions:contents: readdiff --git a/.github/workflows/sanitizers.yml b/.github/workflows/sanitizers.ymlindex 4cbb0858..f30ea412 100644--- a/.github/workflows/sanitizers.yml+++ b/.github/workflows/sanitizers.yml@@ -7,8 +7,6 @@ on:tags:- '*'pull_request:- schedule:- - cron: '0 2 * * *'workflow_dispatch:permissions:@@ -25,7 +23,6 @@ jobs:# thread and installs no handler today; the leg is there for the first.tests:name: ${{ matrix.name }} (${{ matrix.compiler }})- if: github.event_name != 'schedule'runs-on: ubuntu-lateststrategy:fail-fast: false@@ -134,7 +131,7 @@ jobs:# The unit tests link the util objects, whose build needs the BTF of# a signed-BPF capable bpf-next kernel, as the other jobs do. A push- # or a pull request gets a minute per fuzz target, the nightly run+ # or a pull request gets a minute per fuzz target, a run by hand# ten.- name: Build under MSan and run the unit tests and fuzz targets in LVH VMuses: cilium/little-vm-helper@c8b0bfbae3bdda7bc69fb9cd370e4b74ce84986d # v0.0.33@@ -178,7 +175,7 @@ jobs:sh .github/scripts/msan-deps.shsh .github/scripts/msan-tests.sh \- ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && 600 || 60 }}+ ${{ github.event_name == 'workflow_dispatch' && 600 || 60 }}- name: Save the MemorySanitizer librariesif: always() && steps.msan-deps.outputs.cache-hit != 'true' && hashFiles('build/msan-deps/lib/libcrypto.so') != ''@@ -210,7 +207,7 @@ jobs:path: build/host-opensslkey: host-openssl-lvh-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/scripts/vm-toolchain.sh') }}- # Every run starts from the corpus the last nightly run kept; the+ # Every run starts from the corpus the last push to main kept; the# newest one is restored, as each is saved under a key of its own.- name: Restore the fuzz corporauses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0@@ -221,7 +218,7 @@ jobs:# The targets need no BPF objects, but the toolchain the other jobs# build in comes with the LVH guest. A push or a pull request gets a- # minute per target, the nightly run ten.+ # minute per target, a run by hand ten.- name: Fuzz the parsers of input from outside the host in LVH VMid: fuzzuses: cilium/little-vm-helper@c8b0bfbae3bdda7bc69fb9cd370e4b74ce84986d # v0.0.33@@ -238,7 +235,7 @@ jobs:.github/scripts/vm-toolchain.sh libclang-rt-23-dev. build/vm-toolchain.envmake -j"\$(nproc)" -C testing fuzz \- FUZZ_SECONDS=${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && 600 || 60 }} \+ FUZZ_SECONDS=${{ github.event_name == 'workflow_dispatch' && 600 || 60 }} \FUZZ_CORPUS=/host/build/fuzz-corpus- name: Save the LVH OpenSSL toolchain@@ -248,10 +245,10 @@ jobs:path: build/host-opensslkey: ${{ steps.lvh-openssl.outputs.cache-primary-key }}- # Only the nightly and manual runs save, so that each push does not- # add a corpus to the cache the kernel and the VM images share.+ # A push to main and a run by hand save; a pull request starts from+ # main's corpus and keeps what it finds to itself.- name: Save the fuzz corpora- if: always() && steps.fuzz.outcome != 'skipped' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')+ if: always() && steps.fuzz.outcome != 'skipped' && (github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main'))uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0with:path: build/fuzz-corpusdiff --git a/Documentation/contribute/testing/testing.rst b/Documentation/contribute/testing/testing.rstindex 25967fb2..162ab076 100644--- a/Documentation/contribute/testing/testing.rst+++ b/Documentation/contribute/testing/testing.rst@@ -323,7 +323,7 @@ interpreter is assembly, which no sanitizer instruments, so the valuesit hands back would read as uninitialized. ASan and UBSan cover those.The ``MSan`` job of the ``Sanitizers`` workflow runs the same, the fuzztargets for 60 seconds on each push and pull request and for ten-minutes in the nightly run.+minutes in a run started by hand.Run the fuzz targets--------------------@@ -369,12 +369,13 @@ An input in the kept corpus that crashes a later build fails that runlike any new crash.The ``libFuzzer`` job of the ``Sanitizers`` workflow runs every target-for 60 seconds on each push and pull request, and for ten minutes in a-nightly run, which also starts by hand from the Actions page. Every run-starts from the corpus the last nightly or manual run kept in the-Actions cache, and only those runs save it. When a run fails, the-inputs that crashed are in its ``fuzz-crashes`` artifact; copy one into-``testing/fuzz/`` and run its target on it to reproduce the crash:+for 60 seconds on each push to ``main`` and each pull request, and for+ten minutes in a run started by hand from the Actions page. Every run+starts from the corpus the last push to ``main`` or run by hand kept in+the Actions cache, and only those runs save it: a pull request keeps+what it finds to itself. When a run fails, the inputs that crashed are+in its ``fuzz-crashes`` artifact; copy one into ``testing/fuzz/`` and+run its target on it to reproduce the crash:.. code-block:: console