From b4af23aaab8a44341e43713a71cbebf23df2c27d Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Thu, 30 Mar 2023 13:44:26 -0700 Subject: [PATCH] .github/workflows/codeql-analysis.yml: Add PIP caching Adds caching of PIP dependencies. This reduces overall execution time and decreases likelihood of a network error reaching out pypi to get the dependencies. Caching happens based on modules specified in pip-requirements.txt. Cc: Sean Brogan Cc: Michael Kubacki Cc: Michael D Kinney Signed-off-by: Michael Kubacki Reviewed-by: Michael D Kinney --- .github/workflows/codeql-analysis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 791f79d1f0..33cc0bd6b4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -66,6 +66,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.10.6' + cache: 'pip' + cache-dependency-path: 'pip-requirements.txt' # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL