From f591356bf417e8a5ac1bcb0f373a5f1a09ea61db Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Thu, 26 Oct 2023 13:38:38 -0400 Subject: [PATCH] Review pre-commit pinned versions as prerelease step Because refreshing `pre-commit`'s pinned versions is the only supply chain check for this repository, this patch also removes the nightly supply chain review job. References: * https://github.com/casework/CASE-Implementation-PROV-O/pull/92 Signed-off-by: Alex Nelson --- .../{supply-chain.yml => prerelease.yml} | 24 +++++++++++-------- Makefile | 1 + 2 files changed, 15 insertions(+), 10 deletions(-) rename .github/workflows/{supply-chain.yml => prerelease.yml} (55%) diff --git a/.github/workflows/supply-chain.yml b/.github/workflows/prerelease.yml similarity index 55% rename from .github/workflows/supply-chain.yml rename to .github/workflows/prerelease.yml index b16ea59..2a08302 100644 --- a/.github/workflows/supply-chain.yml +++ b/.github/workflows/prerelease.yml @@ -1,22 +1,26 @@ +# Portions of this file contributed by NIST are governed by the following +# statement: +# # This software was developed at the National Institute of Standards # and Technology by employees of the Federal Government in the course -# of their official duties. Pursuant to title 17 Section 105 of the -# United States Code this software is not subject to copyright -# protection and is in the public domain. NIST assumes no -# responsibility whatsoever for its use by other parties, and makes -# no guarantees, expressed or implied, about its quality, -# reliability, or any other characteristic. +# of their official duties. Pursuant to Title 17 Section 105 of the +# United States Code, this software is not subject to copyright +# protection within the United States. NIST assumes no responsibility +# whatsoever for its use by other parties, and makes no guarantees, +# expressed or implied, about its quality, reliability, or any other +# characteristic. # # We would appreciate acknowledgement if the software is used. # This workflow uses Make to review direct dependencies of this # repository. -name: Supply Chain +name: Prerelease on: - schedule: - - cron: '15 5 * * 1,2,3,4,5' + pull_request: + branches: + - main jobs: build: @@ -37,4 +41,4 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Review dependencies - run: make check-supply-chain + run: make check-supply-chain-pre-commit diff --git a/Makefile b/Makefile index c4aa1d4..4b13058 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,7 @@ check: \ check-supply-chain: \ check-supply-chain-pre-commit +# This target is scheduled to run as part of prerelease review. check-supply-chain-pre-commit: \ .venv-pre-commit/var/.pre-commit-built.log source .venv-pre-commit/bin/activate \