From 3ade376c2407610c8adc41cd956e738a33ea9e9d Mon Sep 17 00:00:00 2001 From: Edward Miller Date: Wed, 4 Dec 2024 00:04:06 -0600 Subject: [PATCH] add caching to CodeQL action --- .github/workflows/codeql.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 29cbae5..33fdce6 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -42,6 +42,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Cache .NET packages + uses: actions/cache@v4 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + restore-keys: | + ${{ runner.os }}-nuget- + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3