mirror of
				https://kkgithub.com/actions/cache.git
				synced 2025-10-27 00:11:50 +08:00 
			
		
		
		
	Compare commits
	
		
			152 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 0400d5f644 | |||
| 374a27f269 | |||
| 358a7306cd | |||
| 2ee706ef74 | |||
| 94f7b5d913 | |||
| c36116c3f4 | |||
| 320fe7d56b | |||
| d81cc477d9 | |||
| de243982c5 | |||
| e7b6a9cc9d | |||
| 640a1c2554 | |||
| c45d39173a | |||
| 5a3ec84eff | |||
| 7de21022a7 | |||
| 76d40dd347 | |||
| 76dd5eb692 | |||
| 8c80c27c5e | |||
| 45cfd0e7ff | |||
| edd449b9cf | |||
| 0576707e37 | |||
| 3105dc9754 | |||
| 9450d42d15 | |||
| 7d05b27fb9 | |||
| 507b84c6a6 | |||
| f248408e15 | |||
| c30eb5542e | |||
| 5b6ae99d8b | |||
| eca7c65a55 | |||
| 1b5d75f5cf | |||
| d4323d4df1 | |||
| da26677639 | |||
| 7921ae235b | |||
| 3937731706 | |||
| 0c907a75c2 | |||
| 710893c236 | |||
| 9fa7e61ec7 | |||
| 36f1e144e1 | |||
| 53aa38c736 | |||
| 1bd1e32a3b | |||
| 882d7ced4c | |||
| f2695d7a42 | |||
| f46ceeb60d | |||
| e6f5858749 | |||
| 4ae6f21c0d | |||
| c16df86586 | |||
| b109c12f3b | |||
| b7d227d702 | |||
| faf639248d | |||
| 4bc41c01bd | |||
| 6849a64899 | |||
| 5a1720c49e | |||
| d9fef48d24 | |||
| a50e8d027b | |||
| acc9ae5c14 | |||
| 1ea5f18c31 | |||
| cc679ff3ba | |||
| 366d43d6f8 | |||
| 02bf31969b | |||
| 6f6220be5a | |||
| ebdd24ede1 | |||
| 255c8ff306 | |||
| 010f24cd9d | |||
| d6151ba7db | |||
| 4ca7071576 | |||
| 5d692d65f4 | |||
| 3aef79d3a3 | |||
| aa55e5f344 | |||
| 772385291f | |||
| e5dc90df92 | |||
| 8585f2ac5c | |||
| 9803087a86 | |||
| e7e2547a88 | |||
| 71d826cc33 | |||
| 25942a73ac | |||
| d73025053b | |||
| 8469c94c6a | |||
| 3624ceb22c | |||
| 2cdf405574 | |||
| a11fb02296 | |||
| cf7a75e7b9 | |||
| c74ca4022c | |||
| f8a7ab490b | |||
| 45b7be0774 | |||
| 81382a721f | |||
| c4ee99a3bd | |||
| 57b8e405f0 | |||
| 40c3b67b29 | |||
| e47d9f9ec8 | |||
| 4a28cbc054 | |||
| bf9a7572fe | |||
| 0c45773b62 | |||
| 8a55f839aa | |||
| 3884cace14 | |||
| e29dad3e36 | |||
| ab5e6d0c87 | |||
| 89c7d86c71 | |||
| d2c84da363 | |||
| 37e7d4eb16 | |||
| a18323f504 | |||
| 104f95683b | |||
| a2ed59d39b | |||
| dc88ab52d7 | |||
| 1d78355196 | |||
| c36458f13b | |||
| 13aacd865c | |||
| 53b35c5439 | |||
| 65b8989fab | |||
| d0be34d544 | |||
| 66cf064d47 | |||
| 1326563738 | |||
| e12d46a63a | |||
| 1baebfc3ba | |||
| eb94f1a6bf | |||
| e71876755e | |||
| 01229828ff | |||
| 3185ecfd61 | |||
| 25618a0a67 | |||
| a0a285ffd4 | |||
| b00bedba4a | |||
| 99d573b49d | |||
| 6f0a1fdd90 | |||
| 2001ca4114 | |||
| 0e9aed0d0d | |||
| 3b7dac1789 | |||
| b1378c8403 | |||
| 704facf57e | |||
| 17e2888746 | |||
| 667d8fdfa2 | |||
| f7ebb81a3f | |||
| 67b839edb6 | |||
| 57f0e3f198 | |||
| 04f198bf0b | |||
| bd9b49b6c3 | |||
| ea0503788c | |||
| 6a1a45d49b | |||
| 9c7b3e90bd | |||
| 8f2671f18e | |||
| 6f1f1e10f3 | |||
| 5cb4bb86c0 | |||
| 84995e0d91 | |||
| bf96a3f9d8 | |||
| 4b8460cbff | |||
| 57014a2baa | |||
| cb865c1889 | |||
| 4e7c82221f | |||
| 88522ab9f3 | |||
| ef11f54eee | |||
| 4b381be638 | |||
| 7893481812 | |||
| 940f3d7cf1 | |||
| e0d62270e2 | |||
| 77eb7eb198 | 
							
								
								
									
										22
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | ||||
| # To get started with Dependabot version updates, you'll need to specify which | ||||
| # package ecosystems to update and where the package manifests are located. | ||||
| # Please see the documentation for all configuration options: | ||||
| # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||||
|  | ||||
| version: 2 | ||||
| updates: | ||||
|   - package-ecosystem: "github-actions" | ||||
|     directory: "/" | ||||
|     schedule: | ||||
|       interval: "weekly" | ||||
|     groups: | ||||
|       minor-actions-dependencies: | ||||
|         update-types: [minor, patch] | ||||
|    | ||||
|   - package-ecosystem: "npm" | ||||
|     directory: "/" | ||||
|     schedule: | ||||
|       interval: "daily"  | ||||
|     allow: | ||||
|     - dependency-type: direct | ||||
|     - dependency-type: production | ||||
							
								
								
									
										2
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							| @ -15,3 +15,5 @@ jobs: | ||||
|   call-check-dist: | ||||
|     name: Check dist/ | ||||
|     uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main | ||||
|     with: | ||||
|       node-version: "20.x" | ||||
|  | ||||
							
								
								
									
										2
									
								
								.github/workflows/close-inactive-issues.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/close-inactive-issues.yml
									
									
									
									
										vendored
									
									
								
							| @ -10,7 +10,7 @@ jobs: | ||||
|       issues: write | ||||
|       pull-requests: write | ||||
|     steps: | ||||
|       - uses: actions/stale@v3 | ||||
|       - uses: actions/stale@v9 | ||||
|         with: | ||||
|           days-before-issue-stale: 200 | ||||
|           days-before-issue-close: 5 | ||||
|  | ||||
							
								
								
									
										8
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							| @ -17,11 +17,11 @@ jobs: | ||||
|  | ||||
|     steps: | ||||
|     - name: Checkout repository | ||||
|       uses: actions/checkout@v3 | ||||
|       uses: actions/checkout@v4 | ||||
|  | ||||
|     # Initializes the CodeQL tools for scanning. | ||||
|     - name: Initialize CodeQL | ||||
|       uses: github/codeql-action/init@v2 | ||||
|       uses: github/codeql-action/init@v3 | ||||
|       # Override language selection by uncommenting this and choosing your languages | ||||
|       # with: | ||||
|       #   languages: go, javascript, csharp, python, cpp, java, ruby | ||||
| @ -29,7 +29,7 @@ jobs: | ||||
|     # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). | ||||
|     # If this step fails, then you should remove it and run the build manually (see below). | ||||
|     - name: Autobuild | ||||
|       uses: github/codeql-action/autobuild@v2 | ||||
|       uses: github/codeql-action/autobuild@v3 | ||||
|  | ||||
|     # ℹ️ Command-line programs to run using the OS shell. | ||||
|     # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||||
| @ -43,4 +43,4 @@ jobs: | ||||
|     #     make release | ||||
|  | ||||
|     - name: Perform CodeQL Analysis | ||||
|       uses: github/codeql-action/analyze@v2 | ||||
|       uses: github/codeql-action/analyze@v3 | ||||
|  | ||||
							
								
								
									
										6
									
								
								.github/workflows/issue-opened-workflow.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/issue-opened-workflow.yml
									
									
									
									
										vendored
									
									
								
							| @ -14,9 +14,3 @@ jobs: | ||||
|     - name: add_assignees | ||||
|       run: | | ||||
|         curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{github.repository}}/issues/${{ github.event.issue.number}}/assignees -d '{"assignees":["${{steps.oncall.outputs.CURRENT}}"]}' | ||||
|  | ||||
|     - uses: actions/add-to-project@v0.4.0 | ||||
|       name: Add to Project Board | ||||
|       with: | ||||
|         project-url: https://github.com/orgs/actions/projects/12                        | ||||
|         github-token: ${{ secrets.CACHE_BOARD_TOKEN }} | ||||
|  | ||||
							
								
								
									
										31
									
								
								.github/workflows/licensed.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										31
									
								
								.github/workflows/licensed.yml
									
									
									
									
										vendored
									
									
								
							| @ -10,6 +10,31 @@ on: | ||||
|   workflow_dispatch: | ||||
|  | ||||
| jobs: | ||||
|   call-licensed: | ||||
|     name: Licensed | ||||
|     uses: actions/reusable-workflows/.github/workflows/licensed.yml@main | ||||
|   validate-cached-dependency-records: | ||||
|     runs-on: ubuntu-latest | ||||
|     name: Check licenses | ||||
|     steps: | ||||
|  | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
|  | ||||
|       - name: Install dependencies | ||||
|         run: npm ci --ignore-scripts | ||||
|  | ||||
|       - name: Set up Ruby | ||||
|         uses: ruby/setup-ruby@v1 | ||||
|         with: | ||||
|           ruby-version: '3.1.7' | ||||
|  | ||||
|       - name: Install licensed tool | ||||
|         run: | | ||||
|           cd "$RUNNER_TEMP" | ||||
|           curl -Lfs -o licensed.tar.gz https://github.com/licensee/licensed/archive/refs/tags/v5.0.4.tar.gz | ||||
|           tar -xzf licensed.tar.gz | ||||
|           cd licensed-5.0.4 | ||||
|           bundle install | ||||
|  | ||||
|       - name: Check cached dependency records | ||||
|         run: | | ||||
|           cd ${{ github.workspace }} | ||||
|           BUNDLE_GEMFILE=$RUNNER_TEMP/licensed-5.0.4/Gemfile bundle exec $RUNNER_TEMP/licensed-5.0.4/exe/licensed status | ||||
							
								
								
									
										6
									
								
								.github/workflows/pr-opened-workflow.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/pr-opened-workflow.yml
									
									
									
									
										vendored
									
									
								
							| @ -18,9 +18,3 @@ jobs: | ||||
|     - name: Add Assignee | ||||
|       run: | | ||||
|         curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{github.repository}}/issues/${{ github.event.pull_request.number}}/assignees -d '{"assignees":["${{steps.oncall.outputs.CURRENT}}"]}'     | ||||
|  | ||||
|     - uses: actions/add-to-project@v0.4.0 | ||||
|       name: Add to Project Board | ||||
|       with: | ||||
|         project-url: https://github.com/orgs/actions/projects/12                        | ||||
|         github-token: ${{ secrets.CACHE_BOARD_TOKEN }} | ||||
|  | ||||
							
								
								
									
										20
									
								
								.github/workflows/publish-immutable-actions.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/publish-immutable-actions.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | ||||
| name: 'Publish Immutable Action Version' | ||||
|  | ||||
| on: | ||||
|   release: | ||||
|     types: [released] | ||||
|  | ||||
| jobs: | ||||
|   publish: | ||||
|     runs-on: ubuntu-latest | ||||
|     permissions: | ||||
|       contents: read | ||||
|       id-token: write | ||||
|       packages: write | ||||
|  | ||||
|     steps: | ||||
|       - name: Checking out | ||||
|         uses: actions/checkout@v4 | ||||
|       - name: Publish | ||||
|         id: publish | ||||
|         uses: actions/publish-immutable-action@0.0.3 | ||||
							
								
								
									
										28
									
								
								.github/workflows/release-new-action-version.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/release-new-action-version.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,28 @@ | ||||
| name: Release new action version | ||||
| on: | ||||
|   release: | ||||
|     types: [released] | ||||
|   workflow_dispatch: | ||||
|     inputs: | ||||
|       TAG_NAME: | ||||
|         description: 'Tag name that the major tag will point to' | ||||
|         required: true | ||||
|  | ||||
| env: | ||||
|   TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} | ||||
| permissions: | ||||
|   contents: write | ||||
|  | ||||
| jobs: | ||||
|   update_tag: | ||||
|     name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes | ||||
|     environment: | ||||
|       name: releaseNewActionVersion | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|     - name: Update the ${{ env.TAG_NAME }} tag | ||||
|       id: update-major-tag | ||||
|       uses: actions/publish-action@v0.3.0 | ||||
|       with: | ||||
|         source-tag: ${{ env.TAG_NAME }} | ||||
|         slack-webhook: ${{ secrets.SLACK_WEBHOOK }} | ||||
							
								
								
									
										16
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/workflow.yml
									
									
									
									
										vendored
									
									
								
							| @ -20,11 +20,11 @@ jobs: | ||||
|     runs-on: ${{ matrix.os }} | ||||
|     steps: | ||||
|     - name: Checkout | ||||
|       uses: actions/checkout@v3 | ||||
|     - name: Setup Node.js 16.x | ||||
|       uses: actions/setup-node@v3 | ||||
|       uses: actions/checkout@v4 | ||||
|     - name: Setup Node.js 20.x | ||||
|       uses: actions/setup-node@v4 | ||||
|       with: | ||||
|         node-version: 16.x | ||||
|         node-version: 20.x | ||||
|         cache: npm | ||||
|     - run: npm ci | ||||
|     - name: Prettier Format Check | ||||
| @ -43,7 +43,7 @@ jobs: | ||||
|     runs-on: ${{ matrix.os }} | ||||
|     steps: | ||||
|     - name: Checkout | ||||
|       uses: actions/checkout@v3 | ||||
|       uses: actions/checkout@v4 | ||||
|     - name: Generate files in working directory | ||||
|       shell: bash | ||||
|       run: __tests__/create-cache-files.sh ${{ runner.os }} test-cache | ||||
| @ -66,7 +66,7 @@ jobs: | ||||
|     runs-on: ${{ matrix.os }} | ||||
|     steps: | ||||
|     - name: Checkout | ||||
|       uses: actions/checkout@v3 | ||||
|       uses: actions/checkout@v4 | ||||
|     - name: Restore cache | ||||
|       uses: ./ | ||||
|       with: | ||||
| @ -96,7 +96,7 @@ jobs: | ||||
|       https_proxy: http://squid-proxy:3128 | ||||
|     steps: | ||||
|     - name: Checkout | ||||
|       uses: actions/checkout@v3 | ||||
|       uses: actions/checkout@v4 | ||||
|     - name: Generate files | ||||
|       run: __tests__/create-cache-files.sh proxy test-cache | ||||
|     - name: Save cache | ||||
| @ -119,7 +119,7 @@ jobs: | ||||
|       https_proxy: http://squid-proxy:3128 | ||||
|     steps: | ||||
|     - name: Checkout | ||||
|       uses: actions/checkout@v3 | ||||
|       uses: actions/checkout@v4 | ||||
|     - name: Restore cache | ||||
|       uses: ./ | ||||
|       with: | ||||
|  | ||||
| @ -1,6 +1,14 @@ | ||||
| sources: | ||||
|   npm: true | ||||
|  | ||||
| # Force UTF-8 encoding | ||||
| encoding: 'utf-8' | ||||
|  | ||||
| # Ignore problematic packages with encoding issues | ||||
| ignored: | ||||
|   npm: | ||||
|     - form-data | ||||
|  | ||||
| allowed: | ||||
|   - apache-2.0 | ||||
|   - bsd-2-clause | ||||
| @ -14,3 +22,9 @@ allowed: | ||||
| reviewed: | ||||
|   npm: | ||||
|   - sax | ||||
|   - "@protobuf-ts/plugin-framework" # Apache-2.0 | ||||
|   - "@protobuf-ts/runtime" # Apache-2.0 | ||||
|   - fs.realpath # ISC | ||||
|   - glob # ISC | ||||
|   - prettier # MIT | ||||
|   - lodash # MIT | ||||
							
								
								
									
										1761
									
								
								.licenses/NOTICE
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										1761
									
								
								.licenses/NOTICE
									
									
									
										generated
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										6
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,9 +1,9 @@ | ||||
| --- | ||||
| name: "@actions/cache" | ||||
| version: 3.1.4 | ||||
| version: 4.0.5 | ||||
| type: npm | ||||
| summary: | ||||
| homepage: | ||||
| summary: Actions cache lib | ||||
| homepage: https://github.com/actions/toolkit/tree/main/packages/cache | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE.md | ||||
|  | ||||
							
								
								
									
										2
									
								
								.licenses/npm/@actions/core.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@actions/core.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| --- | ||||
| name: "@actions/core" | ||||
| version: 1.10.0 | ||||
| version: 1.11.1 | ||||
| type: npm | ||||
| summary: Actions core lib | ||||
| homepage: https://github.com/actions/toolkit/tree/main/packages/core | ||||
|  | ||||
							
								
								
									
										2
									
								
								.licenses/npm/@actions/http-client.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@actions/http-client.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| --- | ||||
| name: "@actions/http-client" | ||||
| version: 2.0.1 | ||||
| version: 2.1.1 | ||||
| type: npm | ||||
| summary: Actions Http Client | ||||
| homepage: https://github.com/actions/toolkit/tree/main/packages/http-client | ||||
|  | ||||
							
								
								
									
										6
									
								
								.licenses/npm/@actions/io.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								.licenses/npm/@actions/io.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,9 +1,9 @@ | ||||
| --- | ||||
| name: "@actions/io" | ||||
| version: 1.1.2 | ||||
| version: 1.1.3 | ||||
| type: npm | ||||
| summary:  | ||||
| homepage:  | ||||
| summary: Actions io lib | ||||
| homepage: https://github.com/actions/toolkit/tree/main/packages/io | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE.md | ||||
|  | ||||
| @ -1,32 +0,0 @@ | ||||
| --- | ||||
| name: "@azure/core-asynciterator-polyfill" | ||||
| version: 1.0.2 | ||||
| type: npm | ||||
| summary:  | ||||
| homepage:  | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: |2 | ||||
|         MIT License | ||||
|  | ||||
|         Copyright (c) Microsoft Corporation. All rights reserved. | ||||
|  | ||||
|         Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|         of this software and associated documentation files (the "Software"), to deal | ||||
|         in the Software without restriction, including without limitation the rights | ||||
|         to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|         copies of the Software, and to permit persons to whom the Software is | ||||
|         furnished to do so, subject to the following conditions: | ||||
|  | ||||
|         The above copyright notice and this permission notice shall be included in all | ||||
|         copies or substantial portions of the Software. | ||||
|  | ||||
|         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|         IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|         FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|         AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|         LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|         OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|         SOFTWARE | ||||
| notices: [] | ||||
							
								
								
									
										2
									
								
								.licenses/npm/@azure/core-http.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@azure/core-http.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| --- | ||||
| name: "@azure/core-http" | ||||
| version: 2.2.4 | ||||
| version: 3.0.4 | ||||
| type: npm | ||||
| summary: Isomorphic client Runtime for Typescript/node.js/browser javascript client | ||||
|   libraries generated using AutoRest | ||||
|  | ||||
							
								
								
									
										7
									
								
								.licenses/npm/@azure/core-lro.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										7
									
								
								.licenses/npm/@azure/core-lro.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,9 +1,10 @@ | ||||
| --- | ||||
| name: "@azure/core-lro" | ||||
| version: 2.2.4 | ||||
| version: 2.5.1 | ||||
| type: npm | ||||
| summary:  | ||||
| homepage:  | ||||
| summary: Isomorphic client library for supporting long-running operations in node.js | ||||
|   and browser. | ||||
| homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-lro/README.md | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|  | ||||
							
								
								
									
										2
									
								
								.licenses/npm/@azure/core-paging.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@azure/core-paging.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| --- | ||||
| name: "@azure/core-paging" | ||||
| version: 1.2.1 | ||||
| version: 1.5.0 | ||||
| type: npm | ||||
| summary: Core types for paging async iterable iterators | ||||
| homepage: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-paging/README.md | ||||
|  | ||||
| @ -1,16 +1,16 @@ | ||||
| --- | ||||
| name: uuid | ||||
| version: 3.4.0 | ||||
| name: "@azure/core-util" | ||||
| version: 1.2.0 | ||||
| type: npm | ||||
| summary: RFC4122 (v1, v4, and v5) UUIDs | ||||
| homepage: https://github.com/uuidjs/uuid#readme | ||||
| summary: Core library for shared utility methods | ||||
| homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-util/ | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE.md | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     The MIT License (MIT) | ||||
| 
 | ||||
|     Copyright (c) 2010-2016 Robert Kieffer and other contributors | ||||
|     Copyright (c) 2020 Microsoft | ||||
| 
 | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
| @ -29,11 +29,4 @@ licenses: | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: | ||||
| - sources: AUTHORS | ||||
|   text: |- | ||||
|     Robert Kieffer <robert@broofa.com> | ||||
|     Christoph Tavan <dev@tavan.de> | ||||
|     AJ ONeal <coolaj86@gmail.com> | ||||
|     Vincent Voyer <vincent@zeroload.net> | ||||
|     Roman Shtylman <shtylman@gmail.com> | ||||
| notices: [] | ||||
							
								
								
									
										2
									
								
								.licenses/npm/@azure/logger.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/@azure/logger.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| --- | ||||
| name: "@azure/logger" | ||||
| version: 1.0.3 | ||||
| version: 1.0.4 | ||||
| type: npm | ||||
| summary: Microsoft Azure SDK for JavaScript - Logger | ||||
| homepage: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger/README.md | ||||
|  | ||||
							
								
								
									
										7
									
								
								.licenses/npm/@azure/ms-rest-js.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										7
									
								
								.licenses/npm/@azure/ms-rest-js.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,9 +1,10 @@ | ||||
| --- | ||||
| name: "@azure/ms-rest-js" | ||||
| version: 2.6.1 | ||||
| version: 2.7.0 | ||||
| type: npm | ||||
| summary:  | ||||
| homepage:  | ||||
| summary: Isomorphic client Runtime for Typescript/node.js/browser javascript client | ||||
|   libraries generated using AutoRest | ||||
| homepage: https://github.com/Azure/ms-rest-js | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|  | ||||
							
								
								
									
										6
									
								
								.licenses/npm/@azure/storage-blob.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								.licenses/npm/@azure/storage-blob.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,9 +1,9 @@ | ||||
| --- | ||||
| name: "@azure/storage-blob" | ||||
| version: 12.9.0 | ||||
| version: 12.13.0 | ||||
| type: npm | ||||
| summary:  | ||||
| homepage:  | ||||
| summary: Microsoft Azure Storage SDK for JavaScript - Blob | ||||
| homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-blob/ | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|  | ||||
							
								
								
									
										12
									
								
								.licenses/npm/@opentelemetry/api.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										12
									
								
								.licenses/npm/@opentelemetry/api.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,9 +1,9 @@ | ||||
| --- | ||||
| name: "@opentelemetry/api" | ||||
| version: 1.0.4 | ||||
| version: 1.4.0 | ||||
| type: npm | ||||
| summary: Public API for OpenTelemetry | ||||
| homepage: https://github.com/open-telemetry/opentelemetry-js-api#readme | ||||
| homepage: https://github.com/open-telemetry/opentelemetry-js/tree/main/api | ||||
| license: apache-2.0 | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
| @ -216,10 +216,8 @@ licenses: | ||||
|     [opentelemetry-js]: https://github.com/open-telemetry/opentelemetry-js | ||||
|  | ||||
|     [discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions | ||||
|     [license-url]: https://github.com/open-telemetry/opentelemetry-js-api/blob/main/LICENSE | ||||
|     [license-url]: https://github.com/open-telemetry/opentelemetry-js/blob/main/api/LICENSE | ||||
|     [license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat | ||||
|     [npm-url]: https://www.npmjs.com/package/@opentelemetry/api | ||||
|     [npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fapi.svg | ||||
|     [docs-tracing]: https://github.com/open-telemetry/opentelemetry-js-api/blob/main/docs/tracing.md | ||||
|     [docs-sdk-registration]: https://github.com/open-telemetry/opentelemetry-js-api/blob/main/docs/sdk-registration.md | ||||
|     [docs-tracing]: https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/tracing.md | ||||
|     [docs-sdk-registration]: https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/sdk-registration.md | ||||
| notices: [] | ||||
|  | ||||
							
								
								
									
										185
									
								
								.licenses/npm/@protobuf-ts/runtime-rpc.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										185
									
								
								.licenses/npm/@protobuf-ts/runtime-rpc.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,185 @@ | ||||
| --- | ||||
| name: "@protobuf-ts/runtime-rpc" | ||||
| version: 2.11.1 | ||||
| type: npm | ||||
| summary: Runtime library for RPC clients generated by the protoc plugin "protobuf-ts" | ||||
| homepage: https://github.com/timostamm/protobuf-ts | ||||
| license: apache-2.0 | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: |2 | ||||
|                                     Apache License | ||||
|                                Version 2.0, January 2004 | ||||
|                             http://www.apache.org/licenses/ | ||||
|  | ||||
|        TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | ||||
|  | ||||
|        1. Definitions. | ||||
|  | ||||
|           "License" shall mean the terms and conditions for use, reproduction, | ||||
|           and distribution as defined by Sections 1 through 9 of this document. | ||||
|  | ||||
|           "Licensor" shall mean the copyright owner or entity authorized by | ||||
|           the copyright owner that is granting the License. | ||||
|  | ||||
|           "Legal Entity" shall mean the union of the acting entity and all | ||||
|           other entities that control, are controlled by, or are under common | ||||
|           control with that entity. For the purposes of this definition, | ||||
|           "control" means (i) the power, direct or indirect, to cause the | ||||
|           direction or management of such entity, whether by contract or | ||||
|           otherwise, or (ii) ownership of fifty percent (50%) or more of the | ||||
|           outstanding shares, or (iii) beneficial ownership of such entity. | ||||
|  | ||||
|           "You" (or "Your") shall mean an individual or Legal Entity | ||||
|           exercising permissions granted by this License. | ||||
|  | ||||
|           "Source" form shall mean the preferred form for making modifications, | ||||
|           including but not limited to software source code, documentation | ||||
|           source, and configuration files. | ||||
|  | ||||
|           "Object" form shall mean any form resulting from mechanical | ||||
|           transformation or translation of a Source form, including but | ||||
|           not limited to compiled object code, generated documentation, | ||||
|           and conversions to other media types. | ||||
|  | ||||
|           "Work" shall mean the work of authorship, whether in Source or | ||||
|           Object form, made available under the License, as indicated by a | ||||
|           copyright notice that is included in or attached to the work | ||||
|           (an example is provided in the Appendix below). | ||||
|  | ||||
|           "Derivative Works" shall mean any work, whether in Source or Object | ||||
|           form, that is based on (or derived from) the Work and for which the | ||||
|           editorial revisions, annotations, elaborations, or other modifications | ||||
|           represent, as a whole, an original work of authorship. For the purposes | ||||
|           of this License, Derivative Works shall not include works that remain | ||||
|           separable from, or merely link (or bind by name) to the interfaces of, | ||||
|           the Work and Derivative Works thereof. | ||||
|  | ||||
|           "Contribution" shall mean any work of authorship, including | ||||
|           the original version of the Work and any modifications or additions | ||||
|           to that Work or Derivative Works thereof, that is intentionally | ||||
|           submitted to Licensor for inclusion in the Work by the copyright owner | ||||
|           or by an individual or Legal Entity authorized to submit on behalf of | ||||
|           the copyright owner. For the purposes of this definition, "submitted" | ||||
|           means any form of electronic, verbal, or written communication sent | ||||
|           to the Licensor or its representatives, including but not limited to | ||||
|           communication on electronic mailing lists, source code control systems, | ||||
|           and issue tracking systems that are managed by, or on behalf of, the | ||||
|           Licensor for the purpose of discussing and improving the Work, but | ||||
|           excluding communication that is conspicuously marked or otherwise | ||||
|           designated in writing by the copyright owner as "Not a Contribution." | ||||
|  | ||||
|           "Contributor" shall mean Licensor and any individual or Legal Entity | ||||
|           on behalf of whom a Contribution has been received by Licensor and | ||||
|           subsequently incorporated within the Work. | ||||
|  | ||||
|        2. Grant of Copyright License. Subject to the terms and conditions of | ||||
|           this License, each Contributor hereby grants to You a perpetual, | ||||
|           worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||||
|           copyright license to reproduce, prepare Derivative Works of, | ||||
|           publicly display, publicly perform, sublicense, and distribute the | ||||
|           Work and such Derivative Works in Source or Object form. | ||||
|  | ||||
|        3. Grant of Patent License. Subject to the terms and conditions of | ||||
|           this License, each Contributor hereby grants to You a perpetual, | ||||
|           worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||||
|           (except as stated in this section) patent license to make, have made, | ||||
|           use, offer to sell, sell, import, and otherwise transfer the Work, | ||||
|           where such license applies only to those patent claims licensable | ||||
|           by such Contributor that are necessarily infringed by their | ||||
|           Contribution(s) alone or by combination of their Contribution(s) | ||||
|           with the Work to which such Contribution(s) was submitted. If You | ||||
|           institute patent litigation against any entity (including a | ||||
|           cross-claim or counterclaim in a lawsuit) alleging that the Work | ||||
|           or a Contribution incorporated within the Work constitutes direct | ||||
|           or contributory patent infringement, then any patent licenses | ||||
|           granted to You under this License for that Work shall terminate | ||||
|           as of the date such litigation is filed. | ||||
|  | ||||
|        4. Redistribution. You may reproduce and distribute copies of the | ||||
|           Work or Derivative Works thereof in any medium, with or without | ||||
|           modifications, and in Source or Object form, provided that You | ||||
|           meet the following conditions: | ||||
|  | ||||
|           (a) You must give any other recipients of the Work or | ||||
|               Derivative Works a copy of this License; and | ||||
|  | ||||
|           (b) You must cause any modified files to carry prominent notices | ||||
|               stating that You changed the files; and | ||||
|  | ||||
|           (c) You must retain, in the Source form of any Derivative Works | ||||
|               that You distribute, all copyright, patent, trademark, and | ||||
|               attribution notices from the Source form of the Work, | ||||
|               excluding those notices that do not pertain to any part of | ||||
|               the Derivative Works; and | ||||
|  | ||||
|           (d) If the Work includes a "NOTICE" text file as part of its | ||||
|               distribution, then any Derivative Works that You distribute must | ||||
|               include a readable copy of the attribution notices contained | ||||
|               within such NOTICE file, excluding those notices that do not | ||||
|               pertain to any part of the Derivative Works, in at least one | ||||
|               of the following places: within a NOTICE text file distributed | ||||
|               as part of the Derivative Works; within the Source form or | ||||
|               documentation, if provided along with the Derivative Works; or, | ||||
|               within a display generated by the Derivative Works, if and | ||||
|               wherever such third-party notices normally appear. The contents | ||||
|               of the NOTICE file are for informational purposes only and | ||||
|               do not modify the License. You may add Your own attribution | ||||
|               notices within Derivative Works that You distribute, alongside | ||||
|               or as an addendum to the NOTICE text from the Work, provided | ||||
|               that such additional attribution notices cannot be construed | ||||
|               as modifying the License. | ||||
|  | ||||
|           You may add Your own copyright statement to Your modifications and | ||||
|           may provide additional or different license terms and conditions | ||||
|           for use, reproduction, or distribution of Your modifications, or | ||||
|           for any such Derivative Works as a whole, provided Your use, | ||||
|           reproduction, and distribution of the Work otherwise complies with | ||||
|           the conditions stated in this License. | ||||
|  | ||||
|        5. Submission of Contributions. Unless You explicitly state otherwise, | ||||
|           any Contribution intentionally submitted for inclusion in the Work | ||||
|           by You to the Licensor shall be under the terms and conditions of | ||||
|           this License, without any additional terms or conditions. | ||||
|           Notwithstanding the above, nothing herein shall supersede or modify | ||||
|           the terms of any separate license agreement you may have executed | ||||
|           with Licensor regarding such Contributions. | ||||
|  | ||||
|        6. Trademarks. This License does not grant permission to use the trade | ||||
|           names, trademarks, service marks, or product names of the Licensor, | ||||
|           except as required for reasonable and customary use in describing the | ||||
|           origin of the Work and reproducing the content of the NOTICE file. | ||||
|  | ||||
|        7. Disclaimer of Warranty. Unless required by applicable law or | ||||
|           agreed to in writing, Licensor provides the Work (and each | ||||
|           Contributor provides its Contributions) on an "AS IS" BASIS, | ||||
|           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||||
|           implied, including, without limitation, any warranties or conditions | ||||
|           of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A | ||||
|           PARTICULAR PURPOSE. You are solely responsible for determining the | ||||
|           appropriateness of using or redistributing the Work and assume any | ||||
|           risks associated with Your exercise of permissions under this License. | ||||
|  | ||||
|        8. Limitation of Liability. In no event and under no legal theory, | ||||
|           whether in tort (including negligence), contract, or otherwise, | ||||
|           unless required by applicable law (such as deliberate and grossly | ||||
|           negligent acts) or agreed to in writing, shall any Contributor be | ||||
|           liable to You for damages, including any direct, indirect, special, | ||||
|           incidental, or consequential damages of any character arising as a | ||||
|           result of this License or out of the use or inability to use the | ||||
|           Work (including but not limited to damages for loss of goodwill, | ||||
|           work stoppage, computer failure or malfunction, or any and all | ||||
|           other commercial damages or losses), even if such Contributor | ||||
|           has been advised of the possibility of such damages. | ||||
|  | ||||
|        9. Accepting Warranty or Additional Liability. While redistributing | ||||
|           the Work or Derivative Works thereof, You may choose to offer, | ||||
|           and charge a fee for, acceptance of support, warranty, indemnity, | ||||
|           or other liability obligations and/or rights consistent with this | ||||
|           License. However, in accepting such obligations, You may act only | ||||
|           on Your own behalf and on Your sole responsibility, not on behalf | ||||
|           of any other Contributor, and only if You agree to indemnify, | ||||
|           defend, and hold each Contributor harmless for any liability | ||||
|           incurred by, or claims asserted against, such Contributor by reason | ||||
|           of your accepting any such warranty or additional liability. | ||||
| notices: [] | ||||
							
								
								
									
										185
									
								
								.licenses/npm/@protobuf-ts/runtime.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										185
									
								
								.licenses/npm/@protobuf-ts/runtime.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,185 @@ | ||||
| --- | ||||
| name: "@protobuf-ts/runtime" | ||||
| version: 2.11.1 | ||||
| type: npm | ||||
| summary: Runtime library for code generated by the protoc plugin "protobuf-ts" | ||||
| homepage: https://github.com/timostamm/protobuf-ts | ||||
| license: other | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: |2 | ||||
|                                     Apache License | ||||
|                                Version 2.0, January 2004 | ||||
|                             http://www.apache.org/licenses/ | ||||
|  | ||||
|        TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | ||||
|  | ||||
|        1. Definitions. | ||||
|  | ||||
|           "License" shall mean the terms and conditions for use, reproduction, | ||||
|           and distribution as defined by Sections 1 through 9 of this document. | ||||
|  | ||||
|           "Licensor" shall mean the copyright owner or entity authorized by | ||||
|           the copyright owner that is granting the License. | ||||
|  | ||||
|           "Legal Entity" shall mean the union of the acting entity and all | ||||
|           other entities that control, are controlled by, or are under common | ||||
|           control with that entity. For the purposes of this definition, | ||||
|           "control" means (i) the power, direct or indirect, to cause the | ||||
|           direction or management of such entity, whether by contract or | ||||
|           otherwise, or (ii) ownership of fifty percent (50%) or more of the | ||||
|           outstanding shares, or (iii) beneficial ownership of such entity. | ||||
|  | ||||
|           "You" (or "Your") shall mean an individual or Legal Entity | ||||
|           exercising permissions granted by this License. | ||||
|  | ||||
|           "Source" form shall mean the preferred form for making modifications, | ||||
|           including but not limited to software source code, documentation | ||||
|           source, and configuration files. | ||||
|  | ||||
|           "Object" form shall mean any form resulting from mechanical | ||||
|           transformation or translation of a Source form, including but | ||||
|           not limited to compiled object code, generated documentation, | ||||
|           and conversions to other media types. | ||||
|  | ||||
|           "Work" shall mean the work of authorship, whether in Source or | ||||
|           Object form, made available under the License, as indicated by a | ||||
|           copyright notice that is included in or attached to the work | ||||
|           (an example is provided in the Appendix below). | ||||
|  | ||||
|           "Derivative Works" shall mean any work, whether in Source or Object | ||||
|           form, that is based on (or derived from) the Work and for which the | ||||
|           editorial revisions, annotations, elaborations, or other modifications | ||||
|           represent, as a whole, an original work of authorship. For the purposes | ||||
|           of this License, Derivative Works shall not include works that remain | ||||
|           separable from, or merely link (or bind by name) to the interfaces of, | ||||
|           the Work and Derivative Works thereof. | ||||
|  | ||||
|           "Contribution" shall mean any work of authorship, including | ||||
|           the original version of the Work and any modifications or additions | ||||
|           to that Work or Derivative Works thereof, that is intentionally | ||||
|           submitted to Licensor for inclusion in the Work by the copyright owner | ||||
|           or by an individual or Legal Entity authorized to submit on behalf of | ||||
|           the copyright owner. For the purposes of this definition, "submitted" | ||||
|           means any form of electronic, verbal, or written communication sent | ||||
|           to the Licensor or its representatives, including but not limited to | ||||
|           communication on electronic mailing lists, source code control systems, | ||||
|           and issue tracking systems that are managed by, or on behalf of, the | ||||
|           Licensor for the purpose of discussing and improving the Work, but | ||||
|           excluding communication that is conspicuously marked or otherwise | ||||
|           designated in writing by the copyright owner as "Not a Contribution." | ||||
|  | ||||
|           "Contributor" shall mean Licensor and any individual or Legal Entity | ||||
|           on behalf of whom a Contribution has been received by Licensor and | ||||
|           subsequently incorporated within the Work. | ||||
|  | ||||
|        2. Grant of Copyright License. Subject to the terms and conditions of | ||||
|           this License, each Contributor hereby grants to You a perpetual, | ||||
|           worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||||
|           copyright license to reproduce, prepare Derivative Works of, | ||||
|           publicly display, publicly perform, sublicense, and distribute the | ||||
|           Work and such Derivative Works in Source or Object form. | ||||
|  | ||||
|        3. Grant of Patent License. Subject to the terms and conditions of | ||||
|           this License, each Contributor hereby grants to You a perpetual, | ||||
|           worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||||
|           (except as stated in this section) patent license to make, have made, | ||||
|           use, offer to sell, sell, import, and otherwise transfer the Work, | ||||
|           where such license applies only to those patent claims licensable | ||||
|           by such Contributor that are necessarily infringed by their | ||||
|           Contribution(s) alone or by combination of their Contribution(s) | ||||
|           with the Work to which such Contribution(s) was submitted. If You | ||||
|           institute patent litigation against any entity (including a | ||||
|           cross-claim or counterclaim in a lawsuit) alleging that the Work | ||||
|           or a Contribution incorporated within the Work constitutes direct | ||||
|           or contributory patent infringement, then any patent licenses | ||||
|           granted to You under this License for that Work shall terminate | ||||
|           as of the date such litigation is filed. | ||||
|  | ||||
|        4. Redistribution. You may reproduce and distribute copies of the | ||||
|           Work or Derivative Works thereof in any medium, with or without | ||||
|           modifications, and in Source or Object form, provided that You | ||||
|           meet the following conditions: | ||||
|  | ||||
|           (a) You must give any other recipients of the Work or | ||||
|               Derivative Works a copy of this License; and | ||||
|  | ||||
|           (b) You must cause any modified files to carry prominent notices | ||||
|               stating that You changed the files; and | ||||
|  | ||||
|           (c) You must retain, in the Source form of any Derivative Works | ||||
|               that You distribute, all copyright, patent, trademark, and | ||||
|               attribution notices from the Source form of the Work, | ||||
|               excluding those notices that do not pertain to any part of | ||||
|               the Derivative Works; and | ||||
|  | ||||
|           (d) If the Work includes a "NOTICE" text file as part of its | ||||
|               distribution, then any Derivative Works that You distribute must | ||||
|               include a readable copy of the attribution notices contained | ||||
|               within such NOTICE file, excluding those notices that do not | ||||
|               pertain to any part of the Derivative Works, in at least one | ||||
|               of the following places: within a NOTICE text file distributed | ||||
|               as part of the Derivative Works; within the Source form or | ||||
|               documentation, if provided along with the Derivative Works; or, | ||||
|               within a display generated by the Derivative Works, if and | ||||
|               wherever such third-party notices normally appear. The contents | ||||
|               of the NOTICE file are for informational purposes only and | ||||
|               do not modify the License. You may add Your own attribution | ||||
|               notices within Derivative Works that You distribute, alongside | ||||
|               or as an addendum to the NOTICE text from the Work, provided | ||||
|               that such additional attribution notices cannot be construed | ||||
|               as modifying the License. | ||||
|  | ||||
|           You may add Your own copyright statement to Your modifications and | ||||
|           may provide additional or different license terms and conditions | ||||
|           for use, reproduction, or distribution of Your modifications, or | ||||
|           for any such Derivative Works as a whole, provided Your use, | ||||
|           reproduction, and distribution of the Work otherwise complies with | ||||
|           the conditions stated in this License. | ||||
|  | ||||
|        5. Submission of Contributions. Unless You explicitly state otherwise, | ||||
|           any Contribution intentionally submitted for inclusion in the Work | ||||
|           by You to the Licensor shall be under the terms and conditions of | ||||
|           this License, without any additional terms or conditions. | ||||
|           Notwithstanding the above, nothing herein shall supersede or modify | ||||
|           the terms of any separate license agreement you may have executed | ||||
|           with Licensor regarding such Contributions. | ||||
|  | ||||
|        6. Trademarks. This License does not grant permission to use the trade | ||||
|           names, trademarks, service marks, or product names of the Licensor, | ||||
|           except as required for reasonable and customary use in describing the | ||||
|           origin of the Work and reproducing the content of the NOTICE file. | ||||
|  | ||||
|        7. Disclaimer of Warranty. Unless required by applicable law or | ||||
|           agreed to in writing, Licensor provides the Work (and each | ||||
|           Contributor provides its Contributions) on an "AS IS" BASIS, | ||||
|           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||||
|           implied, including, without limitation, any warranties or conditions | ||||
|           of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A | ||||
|           PARTICULAR PURPOSE. You are solely responsible for determining the | ||||
|           appropriateness of using or redistributing the Work and assume any | ||||
|           risks associated with Your exercise of permissions under this License. | ||||
|  | ||||
|        8. Limitation of Liability. In no event and under no legal theory, | ||||
|           whether in tort (including negligence), contract, or otherwise, | ||||
|           unless required by applicable law (such as deliberate and grossly | ||||
|           negligent acts) or agreed to in writing, shall any Contributor be | ||||
|           liable to You for damages, including any direct, indirect, special, | ||||
|           incidental, or consequential damages of any character arising as a | ||||
|           result of this License or out of the use or inability to use the | ||||
|           Work (including but not limited to damages for loss of goodwill, | ||||
|           work stoppage, computer failure or malfunction, or any and all | ||||
|           other commercial damages or losses), even if such Contributor | ||||
|           has been advised of the possibility of such damages. | ||||
|  | ||||
|        9. Accepting Warranty or Additional Liability. While redistributing | ||||
|           the Work or Derivative Works thereof, You may choose to offer, | ||||
|           and charge a fee for, acceptance of support, warranty, indemnity, | ||||
|           or other liability obligations and/or rights consistent with this | ||||
|           License. However, in accepting such obligations, You may act only | ||||
|           on Your own behalf and on Your sole responsibility, not on behalf | ||||
|           of any other Contributor, and only if You agree to indemnify, | ||||
|           defend, and hold each Contributor harmless for any liability | ||||
|           incurred by, or claims asserted against, such Contributor by reason | ||||
|           of your accepting any such warranty or additional liability. | ||||
| notices: [] | ||||
							
								
								
									
										6
									
								
								.licenses/npm/@types/node-fetch.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								.licenses/npm/@types/node-fetch.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,9 +1,9 @@ | ||||
| --- | ||||
| name: "@types/node-fetch" | ||||
| version: 2.6.1 | ||||
| version: 2.6.2 | ||||
| type: npm | ||||
| summary:  | ||||
| homepage:  | ||||
| summary: TypeScript definitions for node-fetch | ||||
| homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|  | ||||
							
								
								
									
										2
									
								
								.licenses/npm/brace-expansion.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/brace-expansion.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| --- | ||||
| name: brace-expansion | ||||
| version: 1.1.11 | ||||
| version: 1.1.12 | ||||
| type: npm | ||||
| summary: Brace expansion as known from sh/bash | ||||
| homepage: https://github.com/juliangruber/brace-expansion | ||||
|  | ||||
							
								
								
									
										32
									
								
								.licenses/npm/call-bind-apply-helpers.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/call-bind-apply-helpers.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: call-bind-apply-helpers | ||||
| version: 1.0.2 | ||||
| type: npm | ||||
| summary: Helper functions around Function call/apply/bind, for use in `call-bind` | ||||
| homepage: https://github.com/ljharb/call-bind-apply-helpers#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2024 Jordan Harband | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										32
									
								
								.licenses/npm/dunder-proto.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/dunder-proto.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: dunder-proto | ||||
| version: 1.0.1 | ||||
| type: npm | ||||
| summary: If available, the `Object.prototype.__proto__` accessor and mutator, call-bound | ||||
| homepage: https://github.com/es-shims/dunder-proto#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2024 ECMAScript Shims | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										32
									
								
								.licenses/npm/es-define-property.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/es-define-property.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: es-define-property | ||||
| version: 1.0.1 | ||||
| type: npm | ||||
| summary: "`Object.defineProperty`, but not IE 8's broken one." | ||||
| homepage: https://github.com/ljharb/es-define-property#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2024 Jordan Harband | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										32
									
								
								.licenses/npm/es-errors.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/es-errors.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: es-errors | ||||
| version: 1.3.0 | ||||
| type: npm | ||||
| summary: A simple cache for a few of the JS Error constructors. | ||||
| homepage: https://github.com/ljharb/es-errors#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2024 Jordan Harband | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										32
									
								
								.licenses/npm/es-object-atoms.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/es-object-atoms.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: es-object-atoms | ||||
| version: 1.1.1 | ||||
| type: npm | ||||
| summary: 'ES Object-related atoms: Object, ToObject, RequireObjectCoercible' | ||||
| homepage: https://github.com/ljharb/es-object-atoms#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2024 Jordan Harband | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										32
									
								
								.licenses/npm/es-set-tostringtag.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/es-set-tostringtag.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: es-set-tostringtag | ||||
| version: 2.1.0 | ||||
| type: npm | ||||
| summary: A helper to optimistically set Symbol.toStringTag, when possible. | ||||
| homepage: https://github.com/es-shims/es-set-tostringtag#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2022 ECMAScript Shims | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										33
									
								
								.licenses/npm/form-data-2.5.1.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										33
									
								
								.licenses/npm/form-data-2.5.1.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,33 +0,0 @@ | ||||
| --- | ||||
| name: form-data | ||||
| version: 2.5.1 | ||||
| type: npm | ||||
| summary: A library to create readable "multipart/form-data" streams. Can be used to | ||||
|   submit forms and file uploads to other web applications. | ||||
| homepage: https://github.com/form-data/form-data#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: License | ||||
|   text: | | ||||
|     Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors | ||||
|  | ||||
|      Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|      of this software and associated documentation files (the "Software"), to deal | ||||
|      in the Software without restriction, including without limitation the rights | ||||
|      to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|      copies of the Software, and to permit persons to whom the Software is | ||||
|      furnished to do so, subject to the following conditions: | ||||
|  | ||||
|      The above copyright notice and this permission notice shall be included in | ||||
|      all copies or substantial portions of the Software. | ||||
|  | ||||
|      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|      IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|      FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|      AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|      LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|      OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
|      THE SOFTWARE. | ||||
| - sources: README.md | ||||
|   text: Form-Data is released under the [MIT](License) license. | ||||
| notices: [] | ||||
							
								
								
									
										33
									
								
								.licenses/npm/form-data-3.0.1.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										33
									
								
								.licenses/npm/form-data-3.0.1.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,33 +0,0 @@ | ||||
| --- | ||||
| name: form-data | ||||
| version: 3.0.1 | ||||
| type: npm | ||||
| summary: A library to create readable "multipart/form-data" streams. Can be used to | ||||
|   submit forms and file uploads to other web applications. | ||||
| homepage: https://github.com/form-data/form-data#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: License | ||||
|   text: | | ||||
|     Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors | ||||
|  | ||||
|      Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|      of this software and associated documentation files (the "Software"), to deal | ||||
|      in the Software without restriction, including without limitation the rights | ||||
|      to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|      copies of the Software, and to permit persons to whom the Software is | ||||
|      furnished to do so, subject to the following conditions: | ||||
|  | ||||
|      The above copyright notice and this permission notice shall be included in | ||||
|      all copies or substantial portions of the Software. | ||||
|  | ||||
|      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|      IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|      FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|      AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|      LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|      OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
|      THE SOFTWARE. | ||||
| - sources: Readme.md | ||||
|   text: Form-Data is released under the [MIT](License) license. | ||||
| notices: [] | ||||
							
								
								
									
										33
									
								
								.licenses/npm/form-data-4.0.0.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										33
									
								
								.licenses/npm/form-data-4.0.0.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,33 +0,0 @@ | ||||
| --- | ||||
| name: form-data | ||||
| version: 4.0.0 | ||||
| type: npm | ||||
| summary: A library to create readable "multipart/form-data" streams. Can be used to | ||||
|   submit forms and file uploads to other web applications. | ||||
| homepage: https://github.com/form-data/form-data#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: License | ||||
|   text: | | ||||
|     Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors | ||||
|  | ||||
|      Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|      of this software and associated documentation files (the "Software"), to deal | ||||
|      in the Software without restriction, including without limitation the rights | ||||
|      to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|      copies of the Software, and to permit persons to whom the Software is | ||||
|      furnished to do so, subject to the following conditions: | ||||
|  | ||||
|      The above copyright notice and this permission notice shall be included in | ||||
|      all copies or substantial portions of the Software. | ||||
|  | ||||
|      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|      IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|      FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|      AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|      LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|      OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
|      THE SOFTWARE. | ||||
| - sources: Readme.md | ||||
|   text: Form-Data is released under the [MIT](License) license. | ||||
| notices: [] | ||||
							
								
								
									
										32
									
								
								.licenses/npm/function-bind.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/function-bind.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: function-bind | ||||
| version: 1.1.2 | ||||
| type: npm | ||||
| summary: Implementation of Function.prototype.bind | ||||
| homepage: https://github.com/Raynos/function-bind | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: |+ | ||||
|     Copyright (c) 2013 Raynos. | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in | ||||
|     all copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
|     THE SOFTWARE. | ||||
|  | ||||
| notices: [] | ||||
| ... | ||||
							
								
								
									
										33
									
								
								.licenses/npm/get-intrinsic.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								.licenses/npm/get-intrinsic.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,33 @@ | ||||
| --- | ||||
| name: get-intrinsic | ||||
| version: 1.3.0 | ||||
| type: npm | ||||
| summary: Get and robustly cache all JS language-level intrinsics at first require | ||||
|   time | ||||
| homepage: https://github.com/ljharb/get-intrinsic#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2020 Jordan Harband | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										32
									
								
								.licenses/npm/get-proto.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/get-proto.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: get-proto | ||||
| version: 1.0.1 | ||||
| type: npm | ||||
| summary: Robustly get the [[Prototype]] of an object | ||||
| homepage: https://github.com/ljharb/get-proto#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2025 Jordan Harband | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										32
									
								
								.licenses/npm/gopd.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/gopd.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: gopd | ||||
| version: 1.2.0 | ||||
| type: npm | ||||
| summary: "`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation." | ||||
| homepage: https://github.com/ljharb/gopd#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2022 Jordan Harband | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										32
									
								
								.licenses/npm/has-symbols.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/has-symbols.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: has-symbols | ||||
| version: 1.1.0 | ||||
| type: npm | ||||
| summary: Determine if the JS environment has Symbol support. Supports spec, or shams. | ||||
| homepage: https://github.com/ljharb/has-symbols#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2016 Jordan Harband | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										33
									
								
								.licenses/npm/has-tostringtag.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								.licenses/npm/has-tostringtag.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,33 @@ | ||||
| --- | ||||
| name: has-tostringtag | ||||
| version: 1.0.2 | ||||
| type: npm | ||||
| summary: Determine if the JS environment has `Symbol.toStringTag` support. Supports | ||||
|   spec, or shams. | ||||
| homepage: https://github.com/inspect-js/has-tostringtag#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2021 Inspect JS | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										32
									
								
								.licenses/npm/hasown.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/hasown.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: hasown | ||||
| version: 2.0.2 | ||||
| type: npm | ||||
| summary: A robust, ES3 compatible, "has own property" predicate. | ||||
| homepage: https://github.com/inspect-js/hasOwn#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) Jordan Harband and contributors | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										32
									
								
								.licenses/npm/math-intrinsics.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.licenses/npm/math-intrinsics.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| name: math-intrinsics | ||||
| version: 1.1.0 | ||||
| type: npm | ||||
| summary: ES Math-related intrinsics and helpers, robustly cached. | ||||
| homepage: https://github.com/es-shims/math-intrinsics#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     MIT License | ||||
|  | ||||
|     Copyright (c) 2024 ECMAScript Shims | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
|     SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										43
									
								
								.licenses/npm/mime-db.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										43
									
								
								.licenses/npm/mime-db.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,33 +1,34 @@ | ||||
| --- | ||||
| name: mime-db | ||||
| version: 1.51.0 | ||||
| version: 1.52.0 | ||||
| type: npm | ||||
| summary: Media Type Database | ||||
| homepage: https://github.com/jshttp/mime-db#readme | ||||
| homepage: | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: |2 | ||||
|   text: | | ||||
|     (The MIT License) | ||||
|  | ||||
|     The MIT License (MIT) | ||||
|     Copyright (c) 2014 Jonathan Ong <me@jongleberry.com> | ||||
|     Copyright (c) 2015-2022 Douglas Christopher Wilson <doug@somethingdoug.com> | ||||
|  | ||||
|     Copyright (c) 2014 Jonathan Ong me@jongleberry.com | ||||
|     Permission is hereby granted, free of charge, to any person obtaining | ||||
|     a copy of this software and associated documentation files (the | ||||
|     'Software'), to deal in the Software without restriction, including | ||||
|     without limitation the rights to use, copy, modify, merge, publish, | ||||
|     distribute, sublicense, and/or sell copies of the Software, and to | ||||
|     permit persons to whom the Software is furnished to do so, subject to | ||||
|     the following conditions: | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|     The above copyright notice and this permission notice shall be | ||||
|     included in all copies or substantial portions of the Software. | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in | ||||
|     all copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
|     THE SOFTWARE. | ||||
|     THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||||
|     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||||
|     MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||||
|     IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||||
|     CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||||
|     TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||||
|     SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
| notices: [] | ||||
|  | ||||
							
								
								
									
										6
									
								
								.licenses/npm/mime-types.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								.licenses/npm/mime-types.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,9 +1,9 @@ | ||||
| --- | ||||
| name: mime-types | ||||
| version: 2.1.34 | ||||
| version: 2.1.35 | ||||
| type: npm | ||||
| summary: The ultimate javascript content-type utility. | ||||
| homepage: https://github.com/jshttp/mime-types#readme | ||||
| homepage: | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
| @ -36,7 +36,7 @@ licenses: | ||||
|     [MIT](LICENSE) | ||||
|  | ||||
|     [ci-image]: https://badgen.net/github/checks/jshttp/mime-types/master?label=ci | ||||
|     [ci-url]: https://github.com/jshttp/mime-types/actions?query=workflow%3Aci | ||||
|     [ci-url]: https://github.com/jshttp/mime-types/actions/workflows/ci.yml | ||||
|     [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-types/master | ||||
|     [coveralls-url]: https://coveralls.io/r/jshttp/mime-types?branch=master | ||||
|     [node-version-image]: https://badgen.net/npm/node/mime-types | ||||
|  | ||||
							
								
								
									
										43
									
								
								.licenses/npm/psl.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										43
									
								
								.licenses/npm/psl.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,43 +0,0 @@ | ||||
| --- | ||||
| name: psl | ||||
| version: 1.8.0 | ||||
| type: npm | ||||
| summary: Domain name parser based on the Public Suffix List | ||||
| homepage: https://github.com/lupomontero/psl#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     The MIT License (MIT) | ||||
|  | ||||
|     Copyright (c) 2017 Lupo Montero lupomontero@gmail.com | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
| - sources: README.md | ||||
|   text: |- | ||||
|     The MIT License (MIT) | ||||
|  | ||||
|     Copyright (c) 2017 Lupo Montero <lupomontero@gmail.com> | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
|     in the Software without restriction, including without limitation the rights | ||||
|     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
|     copies of the Software, and to permit persons to whom the Software is | ||||
|     furnished to do so, subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in | ||||
|     all copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
|     THE SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										34
									
								
								.licenses/npm/punycode.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										34
									
								
								.licenses/npm/punycode.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,34 +0,0 @@ | ||||
| --- | ||||
| name: punycode | ||||
| version: 2.1.1 | ||||
| type: npm | ||||
| summary: A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, | ||||
|   and works on nearly all JavaScript platforms. | ||||
| homepage: https://mths.be/punycode | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE-MIT.txt | ||||
|   text: | | ||||
|     Copyright Mathias Bynens <https://mathiasbynens.be/> | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining | ||||
|     a copy of this software and associated documentation files (the | ||||
|     "Software"), to deal in the Software without restriction, including | ||||
|     without limitation the rights to use, copy, modify, merge, publish, | ||||
|     distribute, sublicense, and/or sell copies of the Software, and to | ||||
|     permit persons to whom the Software is furnished to do so, subject to | ||||
|     the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be | ||||
|     included in all copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||||
|     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||||
|     MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||||
|     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||||
|     LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||||
|     OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||||
|     WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
| - sources: README.md | ||||
|   text: Punycode.js is available under the [MIT](https://mths.be/mit) license. | ||||
| notices: [] | ||||
| @ -1,16 +1,16 @@ | ||||
| --- | ||||
| name: ip-regex | ||||
| version: 2.1.0 | ||||
| name: safe-buffer | ||||
| version: 5.2.1 | ||||
| type: npm | ||||
| summary: Regular expression for matching IP addresses (IPv4 & IPv6) | ||||
| homepage: https://github.com/sindresorhus/ip-regex#readme | ||||
| summary: Safer Node.js Buffer API | ||||
| homepage: https://github.com/feross/safe-buffer | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: license | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     The MIT License (MIT) | ||||
| 
 | ||||
|     Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) | ||||
|     Copyright (c) Feross Aboukhadijeh | ||||
| 
 | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
|     of this software and associated documentation files (the "Software"), to deal | ||||
| @ -29,6 +29,6 @@ licenses: | ||||
|     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
|     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
|     THE SOFTWARE. | ||||
| - sources: readme.md | ||||
|   text: MIT © [Sindre Sorhus](https://sindresorhus.com) | ||||
| - sources: README.md | ||||
|   text: MIT. Copyright (C) [Feross Aboukhadijeh](http://feross.org) | ||||
| notices: [] | ||||
							
								
								
									
										4
									
								
								.licenses/npm/semver.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								.licenses/npm/semver.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,9 +1,9 @@ | ||||
| --- | ||||
| name: semver | ||||
| version: 6.3.0 | ||||
| version: 6.3.1 | ||||
| type: npm | ||||
| summary: The semantic version parser used by npm. | ||||
| homepage: https://github.com/npm/node-semver#readme | ||||
| homepage:  | ||||
| license: isc | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|  | ||||
							
								
								
									
										23
									
								
								.licenses/npm/tough-cookie-3.0.1.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										23
									
								
								.licenses/npm/tough-cookie-3.0.1.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,23 +0,0 @@ | ||||
| --- | ||||
| name: tough-cookie | ||||
| version: 3.0.1 | ||||
| type: npm | ||||
| summary: RFC6265 Cookies and Cookie Jar for node.js | ||||
| homepage: https://github.com/salesforce/tough-cookie | ||||
| license: bsd-3-clause | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     Copyright (c) 2015, Salesforce.com, Inc. | ||||
|     All rights reserved. | ||||
|  | ||||
|     Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||||
|  | ||||
|     1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||||
|  | ||||
|     2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||||
|  | ||||
|     3. Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||||
|  | ||||
|     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| notices: [] | ||||
							
								
								
									
										23
									
								
								.licenses/npm/tough-cookie-4.0.0.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										23
									
								
								.licenses/npm/tough-cookie-4.0.0.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,23 +0,0 @@ | ||||
| --- | ||||
| name: tough-cookie | ||||
| version: 4.0.0 | ||||
| type: npm | ||||
| summary: RFC6265 Cookies and Cookie Jar for node.js | ||||
| homepage: https://github.com/salesforce/tough-cookie | ||||
| license: bsd-3-clause | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     Copyright (c) 2015, Salesforce.com, Inc. | ||||
|     All rights reserved. | ||||
|  | ||||
|     Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||||
|  | ||||
|     1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||||
|  | ||||
|     2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||||
|  | ||||
|     3. Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||||
|  | ||||
|     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| notices: [] | ||||
							
								
								
									
										23
									
								
								.licenses/npm/tslib-2.5.0.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.licenses/npm/tslib-2.5.0.dep.yml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,23 @@ | ||||
| --- | ||||
| name: tslib | ||||
| version: 2.5.0 | ||||
| type: npm | ||||
| summary: Runtime library for TypeScript helper functions | ||||
| homepage: https://www.typescriptlang.org/ | ||||
| license: 0bsd | ||||
| licenses: | ||||
| - sources: LICENSE.txt | ||||
|   text: |- | ||||
|     Copyright (c) Microsoft Corporation. | ||||
|  | ||||
|     Permission to use, copy, modify, and/or distribute this software for any | ||||
|     purpose with or without fee is hereby granted. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||||
|     REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||||
|     AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||||
|     INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||||
|     LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||||
|     OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||||
|     PERFORMANCE OF THIS SOFTWARE. | ||||
| notices: [] | ||||
							
								
								
									
										33
									
								
								.licenses/npm/universalify.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										33
									
								
								.licenses/npm/universalify.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,33 +0,0 @@ | ||||
| --- | ||||
| name: universalify | ||||
| version: 0.1.2 | ||||
| type: npm | ||||
| summary: Make a callback- or promise-based function support both promises and callbacks. | ||||
| homepage: https://github.com/RyanZim/universalify#readme | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE | ||||
|   text: | | ||||
|     (The MIT License) | ||||
|  | ||||
|     Copyright (c) 2017, Ryan Zimmerman <opensrc@ryanzim.com> | ||||
|  | ||||
|     Permission is hereby granted, free of charge, to any person obtaining a copy of | ||||
|     this software and associated documentation files (the 'Software'), to deal in | ||||
|     the Software without restriction, including without limitation the rights to | ||||
|     use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||||
|     the Software, and to permit persons to whom the Software is furnished to do so, | ||||
|     subject to the following conditions: | ||||
|  | ||||
|     The above copyright notice and this permission notice shall be included in all | ||||
|     copies or substantial portions of the Software. | ||||
|  | ||||
|     THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||||
|     FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||||
|     COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||||
|     IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||||
|     CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||
| - sources: README.md | ||||
|   text: MIT | ||||
| notices: [] | ||||
| @ -3,7 +3,7 @@ name: uuid | ||||
| version: 8.3.2 | ||||
| type: npm | ||||
| summary: RFC4122 (v1, v4, and v5) UUIDs | ||||
| homepage: https://github.com/uuidjs/uuid#readme | ||||
| homepage: | ||||
| license: mit | ||||
| licenses: | ||||
| - sources: LICENSE.md | ||||
							
								
								
									
										2
									
								
								.licenses/npm/xml2js.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.licenses/npm/xml2js.dep.yml
									
									
									
										generated
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| --- | ||||
| name: xml2js | ||||
| version: 0.4.23 | ||||
| version: 0.5.0 | ||||
| type: npm | ||||
| summary: Simple XML to JavaScript object converter. | ||||
| homepage: https://github.com/Leonidas-from-XIV/node-xml2js | ||||
|  | ||||
							
								
								
									
										93
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										93
									
								
								README.md
									
									
									
									
									
								
							| @ -2,11 +2,10 @@ | ||||
|  | ||||
| This action allows caching dependencies and build outputs to improve workflow execution time. | ||||
|  | ||||
| Two other actions are available in addition to the primary `cache` action: | ||||
|  | ||||
| * [Restore action](./restore/README.md) | ||||
|  | ||||
| * [Save action](./save/README.md) | ||||
| >Two other actions are available in addition to the primary `cache` action: | ||||
| > | ||||
| >* [Restore action](./restore/README.md) | ||||
| >* [Save action](./save/README.md) | ||||
|  | ||||
| [](https://github.com/actions/cache/actions/workflows/workflow.yml) | ||||
|  | ||||
| @ -16,8 +15,30 @@ See ["Caching dependencies to speed up workflows"](https://docs.github.com/en/ac | ||||
|  | ||||
| ## What's New | ||||
|  | ||||
| ### ⚠️ Important changes | ||||
|  | ||||
| The cache backend service has been rewritten from the ground up for improved performance and reliability. [actions/cache](https://github.com/actions/cache) now integrates with the new cache service (v2) APIs. | ||||
|  | ||||
| The new service will gradually roll out as of **February 1st, 2025**. The legacy service will also be sunset on the same date. Changes in these release are **fully backward compatible**. | ||||
|  | ||||
| **We are deprecating some versions of this action**. We recommend upgrading to version `v4` or `v3` as soon as possible before **February 1st, 2025.** (Upgrade instructions below). | ||||
|  | ||||
| If you are using pinned SHAs, please use the SHAs of versions `v4.2.0` or `v3.4.0` | ||||
|  | ||||
| If you do not upgrade, all workflow runs using any of the deprecated [actions/cache](https://github.com/actions/cache) will fail. | ||||
|  | ||||
| Upgrading to the recommended versions will not break your workflows. | ||||
|  | ||||
| Read more about the change & access the migration guide: [reference to the announcement](https://github.com/actions/cache/discussions/1510). | ||||
|  | ||||
| ### v4 | ||||
|  | ||||
| * Integrated with the new cache service (v2) APIs. | ||||
| * Updated to node 20 | ||||
|  | ||||
| ### v3 | ||||
|  | ||||
| * Integrated with the new cache service (v2) APIs. | ||||
| * Added support for caching in GHES 3.5+. | ||||
| * Fixed download issue for files > 2GB during restore. | ||||
| * Updated the minimum runner version support from node 12 -> node 16. | ||||
| @ -27,11 +48,13 @@ See ["Caching dependencies to speed up workflows"](https://docs.github.com/en/ac | ||||
| * Fixed cache not working with github workspace directory or current directory. | ||||
| * Fixed the download stuck problem by introducing a timeout of 1 hour for cache downloads. | ||||
| * Fix zstd not working for windows on gnu tar in issues. | ||||
| * Allowing users to provide a custom timeout as input for aborting download of a cache segment using an environment variable `SEGMENT_DOWNLOAD_TIMEOUT_MINS`. Default is 60 minutes. | ||||
| * Allowing users to provide a custom timeout as input for aborting download of a cache segment using an environment variable `SEGMENT_DOWNLOAD_TIMEOUT_MINS`. Default is 10 minutes. | ||||
| * New actions are available for granular control over caches - [restore](restore/action.yml) and [save](save/action.yml). | ||||
| * Support cross-os caching as an opt-in feature. See [Cross OS caching](./tips-and-workarounds.md#cross-os-cache) for more info. | ||||
| * Added option to fail job on cache miss. See [Exit workflow on cache miss](./restore/README.md#exit-workflow-on-cache-miss) for more info. | ||||
| * Fix zstd not being used after zstd version upgrade to 1.5.4 on hosted runners | ||||
| * Added option to lookup cache without downloading it. | ||||
| * Reduced segment size to 128MB and segment timeout to 10 minutes to fail fast in case the cache download is stuck. | ||||
|  | ||||
| See the [v2 README.md](https://github.com/actions/cache/blob/v2/README.md) for older updates. | ||||
|  | ||||
| @ -49,19 +72,20 @@ If you are using a `self-hosted` Windows runner, `GNU tar` and `zstd` are requir | ||||
|  | ||||
| * `key` - An explicit key for a cache entry. See [creating a cache key](#creating-a-cache-key). | ||||
| * `path` - A list of files, directories, and wildcard patterns to cache and restore. See [`@actions/glob`](https://github.com/actions/toolkit/tree/main/packages/glob) for supported patterns. | ||||
| * `restore-keys` - An ordered list of prefix-matched keys to use for restoring stale cache if no cache hit occurred for key. | ||||
| * `restore-keys` - An ordered multiline string listing the prefix-matched keys, that are used for restoring stale cache if no cache hit occurred for key. | ||||
| * `enableCrossOsArchive` - An optional boolean when enabled, allows Windows runners to save or restore caches that can be restored or saved respectively on other platforms. Default: `false` | ||||
| * `fail-on-cache-miss` - Fail the workflow if cache entry is not found. Default: `false` | ||||
| * `lookup-only` - If true, only checks if cache entry exists and skips download. Does not change save cache behavior. Default: `false` | ||||
|  | ||||
| #### Environment Variables | ||||
|  | ||||
| * `SEGMENT_DOWNLOAD_TIMEOUT_MINS` - Segment download timeout (in minutes, default `60`) to abort download of the segment if not completed in the defined number of minutes. [Read more](https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout) | ||||
| * `SEGMENT_DOWNLOAD_TIMEOUT_MINS` - Segment download timeout (in minutes, default `10`) to abort download of the segment if not completed in the defined number of minutes. [Read more](https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout) | ||||
|  | ||||
| ### Outputs | ||||
|  | ||||
| * `cache-hit` - A boolean value to indicate an exact match was found for the key. | ||||
|  | ||||
|     > **Note** `cache-hit` will only be set to `true` when a cache hit occurs for the exact `key` match. For a partial key match via `restore-keys` or a cache miss, it will be set to `false`. | ||||
| * `cache-hit` - A string value to indicate an exact match was found for the key. | ||||
|   * If there's a cache hit, this will be 'true' or 'false' to indicate if there's an exact match for `key`. | ||||
|   * If there's a cache miss, this will be an empty string. | ||||
|  | ||||
| See [Skipping steps based on cache-hit](#skipping-steps-based-on-cache-hit) for info on using this output | ||||
|  | ||||
| @ -85,11 +109,11 @@ jobs: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
|     - uses: actions/checkout@v3 | ||||
|     - uses: actions/checkout@v4 | ||||
|  | ||||
|     - name: Cache Primes | ||||
|       id: cache-primes | ||||
|       uses: actions/cache@v3 | ||||
|       uses: actions/cache@v4 | ||||
|       with: | ||||
|         path: prime-numbers | ||||
|         key: ${{ runner.os }}-primes | ||||
| @ -116,11 +140,11 @@ jobs: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
|     - uses: actions/checkout@v3 | ||||
|     - uses: actions/checkout@v4 | ||||
|  | ||||
|     - name: Restore cached Primes | ||||
|       id: cache-primes-restore | ||||
|       uses: actions/cache/restore@v3 | ||||
|       uses: actions/cache/restore@v4 | ||||
|       with: | ||||
|         path: | | ||||
|           path/to/dependencies | ||||
| @ -131,7 +155,7 @@ jobs: | ||||
|     . | ||||
|     - name: Save Primes | ||||
|       id: cache-primes-save | ||||
|       uses: actions/cache/save@v3 | ||||
|       uses: actions/cache/save@v4 | ||||
|       with: | ||||
|         path: | | ||||
|           path/to/dependencies | ||||
| @ -152,6 +176,7 @@ Every programming language and framework has its own way of caching. | ||||
|  | ||||
| See [Examples](examples.md) for a list of `actions/cache` implementations for use with: | ||||
|  | ||||
| * [Bun](./examples.md#bun) | ||||
| * [C# - NuGet](./examples.md#c---nuget) | ||||
| * [Clojure - Lein Deps](./examples.md#clojure---lein-deps) | ||||
| * [D - DUB](./examples.md#d---dub) | ||||
| @ -185,7 +210,7 @@ A cache key can include any of the contexts, functions, literals, and operators | ||||
| For example, using the [`hashFiles`](https://docs.github.com/en/actions/learn-github-actions/expressions#hashfiles) function allows you to create a new cache when dependencies change. | ||||
|  | ||||
| ```yaml | ||||
|   - uses: actions/cache@v3 | ||||
|   - uses: actions/cache@v4 | ||||
|     with: | ||||
|       path: | | ||||
|         path/to/dependencies | ||||
| @ -203,7 +228,7 @@ Additionally, you can use arbitrary command output in a cache key, such as a dat | ||||
|       echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT | ||||
|     shell: bash | ||||
|  | ||||
|   - uses: actions/cache@v3 | ||||
|   - uses: actions/cache@v4 | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
|       key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}-${{ hashFiles('**/lockfiles') }} | ||||
| @ -223,9 +248,9 @@ Example: | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   - uses: actions/checkout@v4 | ||||
|  | ||||
|   - uses: actions/cache@v3 | ||||
|   - uses: actions/cache@v4 | ||||
|     id: cache | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
| @ -253,11 +278,11 @@ jobs: | ||||
|   build-linux: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - uses: actions/checkout@v4 | ||||
|  | ||||
|       - name: Cache Primes | ||||
|         id: cache-primes | ||||
|         uses: actions/cache@v3 | ||||
|         uses: actions/cache@v4 | ||||
|         with: | ||||
|           path: prime-numbers | ||||
|           key: primes | ||||
| @ -268,7 +293,7 @@ jobs: | ||||
|  | ||||
|       - name: Cache Numbers | ||||
|         id: cache-numbers | ||||
|         uses: actions/cache@v3 | ||||
|         uses: actions/cache@v4 | ||||
|         with: | ||||
|           path: numbers | ||||
|           key: primes | ||||
| @ -280,11 +305,11 @@ jobs: | ||||
|   build-windows: | ||||
|     runs-on: windows-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - uses: actions/checkout@v4 | ||||
|  | ||||
|       - name: Cache Primes | ||||
|         id: cache-primes | ||||
|         uses: actions/cache@v3 | ||||
|         uses: actions/cache@v4 | ||||
|         with: | ||||
|           path: prime-numbers | ||||
|           key: primes | ||||
| @ -310,9 +335,23 @@ There are a number of community practices/workarounds to fulfill specific requir | ||||
|  | ||||
| Please note that Windows environment variables (like `%LocalAppData%`) will NOT be expanded by this action. Instead, prefer using `~` in your paths which will expand to the HOME directory. For example, instead of `%LocalAppData%`, use `~\AppData\Local`. For a list of supported default environment variables, see the [Learn GitHub Actions: Variables](https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables) page. | ||||
|  | ||||
| ## Contributing | ||||
| ## Note | ||||
|  | ||||
| We would love for you to contribute to `actions/cache`. Pull requests are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) for more information. | ||||
| Thank you for your interest in this GitHub repo, however, right now we are not taking contributions.  | ||||
|  | ||||
| We continue to focus our resources on strategic areas that help our customers be successful while making developers' lives easier. While GitHub Actions remains a key part of this vision, we are allocating resources towards other areas of Actions and are not taking contributions to this repository at this time. The GitHub public roadmap is the best place to follow along for any updates on features we’re working on and what stage they’re in. | ||||
|  | ||||
| We are taking the following steps to better direct requests related to GitHub Actions, including: | ||||
|  | ||||
| 1. We will be directing questions and support requests to our [Community Discussions area](https://github.com/orgs/community/discussions/categories/actions) | ||||
|  | ||||
| 2. High Priority bugs can be reported through Community Discussions or you can report these to our support team https://support.github.com/contact/bug-report. | ||||
|  | ||||
| 3. Security Issues should be handled as per our [security.md](SECURITY.md). | ||||
|  | ||||
| We will still provide security updates for this project and fix major breaking changes during this time. | ||||
|  | ||||
| You are welcome to still raise bugs in this repo. | ||||
|  | ||||
| ## License | ||||
|  | ||||
|  | ||||
							
								
								
									
										200
									
								
								RELEASES.md
									
									
									
									
									
								
							
							
						
						
									
										200
									
								
								RELEASES.md
									
									
									
									
									
								
							| @ -1,78 +1,178 @@ | ||||
| # Releases | ||||
|  | ||||
| ### 3.0.0 | ||||
| - Updated minimum runner version support from node 12 -> node 16 | ||||
| ### 4.2.4 | ||||
|  | ||||
| ### 3.0.1 | ||||
| - Added support for caching from GHES 3.5. | ||||
| - Fixed download issue for files > 2GB during restore. | ||||
| - Bump `@actions/cache` to v4.0.5 | ||||
|  | ||||
| ### 3.0.2 | ||||
| - Added support for dynamic cache size cap on GHES. | ||||
| ### 4.2.3 | ||||
|  | ||||
| ### 3.0.3 | ||||
| - Fixed avoiding empty cache save when no files are available for caching. ([issue](https://github.com/actions/cache/issues/624)) | ||||
| - Bump `@actions/cache` to v4.0.3 (obfuscates SAS token in debug logs for cache entries) | ||||
|  | ||||
| ### 3.0.4 | ||||
| - Fixed tar creation error while trying to create tar with path as `~/` home folder on `ubuntu-latest`. ([issue](https://github.com/actions/cache/issues/689)) | ||||
| ### 4.2.2 | ||||
|  | ||||
| ### 3.0.5 | ||||
| - Removed error handling by consuming actions/cache 3.0 toolkit, Now cache server error handling will be done by toolkit. ([PR](https://github.com/actions/cache/pull/834)) | ||||
| - Bump `@actions/cache` to v4.0.2 | ||||
|  | ||||
| ### 3.0.6 | ||||
| - Fixed [#809](https://github.com/actions/cache/issues/809) - zstd -d: no such file or directory error | ||||
| - Fixed [#833](https://github.com/actions/cache/issues/833) - cache doesn't work with github workspace directory | ||||
| ### 4.2.1 | ||||
|  | ||||
| ### 3.0.7 | ||||
| - Fixed [#810](https://github.com/actions/cache/issues/810) - download stuck issue. A new timeout is introduced in the download process to abort the download if it gets stuck and doesn't finish within an hour. | ||||
| - Bump `@actions/cache` to v4.0.1 | ||||
|  | ||||
| ### 3.0.8 | ||||
| - Fix zstd not working for windows on gnu tar in issues [#888](https://github.com/actions/cache/issues/888) and [#891](https://github.com/actions/cache/issues/891). | ||||
| - Allowing users to provide a custom timeout as input for aborting download of a cache segment using an environment variable `SEGMENT_DOWNLOAD_TIMEOUT_MINS`. Default is 60 minutes. | ||||
| ### 4.2.0 | ||||
|  | ||||
| ### 3.0.9 | ||||
| - Enhanced the warning message for cache unavailablity in case of GHES. | ||||
| TLDR; The cache backend service has been rewritten from the ground up for improved performance and reliability. [actions/cache](https://github.com/actions/cache) now integrates with the new cache service (v2) APIs. | ||||
|  | ||||
| ### 3.0.10 | ||||
| - Fix a bug with sorting inputs. | ||||
| - Update definition for restore-keys in README.md | ||||
| The new service will gradually roll out as of **February 1st, 2025**. The legacy service will also be sunset on the same date. Changes in these release are **fully backward compatible**. | ||||
|  | ||||
| ### 3.0.11 | ||||
| - Update toolkit version to 3.0.5 to include `@actions/core@^1.10.0` | ||||
| - Update `@actions/cache` to use updated `saveState` and `setOutput` functions from `@actions/core@^1.10.0` | ||||
| **We are deprecating some versions of this action**. We recommend upgrading to version `v4` or `v3` as soon as possible before **February 1st, 2025.** (Upgrade instructions below). | ||||
|  | ||||
| ### 3.1.0-beta.1 | ||||
| - Update `@actions/cache` on windows to use gnu tar and zstd by default and fallback to bsdtar and zstd if gnu tar is not available. ([issue](https://github.com/actions/cache/issues/984)) | ||||
| If you are using pinned SHAs, please use the SHAs of versions `v4.2.0` or `v3.4.0` | ||||
|  | ||||
| ### 3.1.0-beta.2 | ||||
| - Added support for fallback to gzip to restore old caches on windows. | ||||
| If you do not upgrade, all workflow runs using any of the deprecated [actions/cache](https://github.com/actions/cache) will fail. | ||||
|  | ||||
| ### 3.1.0-beta.3 | ||||
| - Bug fixes for bsdtar fallback if gnutar not available and gzip fallback if cache saved using old cache action on windows. | ||||
| Upgrading to the recommended versions will not break your workflows. | ||||
|  | ||||
| ### 3.2.0-beta.1 | ||||
| - Added two new actions - [restore](restore/action.yml) and [save](save/action.yml) for granular control on cache. | ||||
| ### 4.1.2 | ||||
|  | ||||
| ### 3.2.0 | ||||
| - Released the two new actions - [restore](restore/action.yml) and [save](save/action.yml) for granular control on cache | ||||
| - Add GitHub Enterprise Cloud instances hostname filters to inform API endpoint choices - [#1474](https://github.com/actions/cache/pull/1474) | ||||
| - Security fix: Bump braces from 3.0.2 to 3.0.3 - [#1475](https://github.com/actions/cache/pull/1475) | ||||
|  | ||||
| ### 4.1.1 | ||||
|  | ||||
| - Restore original behavior of `cache-hit` output - [#1467](https://github.com/actions/cache/pull/1467) | ||||
|  | ||||
| ### 4.1.0 | ||||
|  | ||||
| - Ensure `cache-hit` output is set when a cache is missed - [#1404](https://github.com/actions/cache/pull/1404) | ||||
| - Deprecate `save-always` input - [#1452](https://github.com/actions/cache/pull/1452) | ||||
|  | ||||
| ### 4.0.2 | ||||
|  | ||||
| - Fixed restore `fail-on-cache-miss` not working. | ||||
|  | ||||
| ### 4.0.1 | ||||
|  | ||||
| - Updated `isGhes` check | ||||
|  | ||||
| ### 4.0.0 | ||||
|  | ||||
| - Updated minimum runner version support from node 12 -> node 20 | ||||
|  | ||||
| ### 3.4.0 | ||||
|  | ||||
| - Integrated with the new cache service (v2) APIs | ||||
|  | ||||
| ### 3.3.3 | ||||
|  | ||||
| - Updates @actions/cache to v3.2.3 to fix accidental mutated path arguments to `getCacheVersion` [actions/toolkit#1378](https://github.com/actions/toolkit/pull/1378) | ||||
| - Additional audit fixes of npm package(s) | ||||
|  | ||||
| ### 3.3.2 | ||||
|  | ||||
| - Fixes bug with Azure SDK causing blob downloads to get stuck. | ||||
|  | ||||
| ### 3.3.1 | ||||
|  | ||||
| - Reduced segment size to 128MB and segment timeout to 10 minutes to fail fast in case the cache download is stuck. | ||||
|  | ||||
| ### 3.3.0 | ||||
|  | ||||
| - Added option to lookup cache without downloading it. | ||||
|  | ||||
| ### 3.2.6 | ||||
|  | ||||
| - Fix zstd not being used after zstd version upgrade to 1.5.4 on hosted runners. | ||||
|  | ||||
| ### 3.2.5 | ||||
|  | ||||
| - Added fix to prevent from setting MYSYS environment variable globally. | ||||
|  | ||||
| ### 3.2.4 | ||||
|  | ||||
| - Added option to fail job on cache miss. | ||||
|  | ||||
| ### 3.2.3 | ||||
|  | ||||
| - Support cross os caching on Windows as an opt-in feature. | ||||
| - Fix issue with symlink restoration on Windows for cross-os caches. | ||||
|  | ||||
| ### 3.2.2 | ||||
|  | ||||
| - Reverted the changes made in 3.2.1 to use gnu tar and zstd by default on windows. | ||||
|  | ||||
| ### 3.2.1 | ||||
|  | ||||
| - Update `@actions/cache` on windows to use gnu tar and zstd by default and fallback to bsdtar and zstd if gnu tar is not available. ([issue](https://github.com/actions/cache/issues/984)) | ||||
| - Added support for fallback to gzip to restore old caches on windows. | ||||
| - Added logs for cache version in case of a cache miss. | ||||
|  | ||||
| ### 3.2.2 | ||||
| - Reverted the changes made in 3.2.1 to use gnu tar and zstd by default on windows. | ||||
| ### 3.2.0 | ||||
|  | ||||
| ### 3.2.3 | ||||
| - Support cross os caching on Windows as an opt-in feature. | ||||
| - Fix issue with symlink restoration on Windows for cross-os caches. | ||||
| - Released the two new actions - [restore](restore/action.yml) and [save](save/action.yml) for granular control on cache | ||||
|  | ||||
| ### 3.2.4 | ||||
| - Added option to fail job on cache miss. | ||||
| ### 3.2.0-beta.1 | ||||
|  | ||||
| ### 3.2.5 | ||||
| - Added fix to prevent from setting MYSYS environment variable globally. | ||||
| - Added two new actions - [restore](restore/action.yml) and [save](save/action.yml) for granular control on cache. | ||||
|  | ||||
| ### 3.2.6 | ||||
| - Fix zstd not being used after zstd version upgrade to 1.5.4 on hosted runners. | ||||
| ### 3.1.0-beta.3 | ||||
|  | ||||
| - Bug fixes for bsdtar fallback if gnutar not available and gzip fallback if cache saved using old cache action on windows. | ||||
|  | ||||
| ### 3.1.0-beta.2 | ||||
|  | ||||
| - Added support for fallback to gzip to restore old caches on windows. | ||||
|  | ||||
| ### 3.1.0-beta.1 | ||||
|  | ||||
| - Update `@actions/cache` on windows to use gnu tar and zstd by default and fallback to bsdtar and zstd if gnu tar is not available. ([issue](https://github.com/actions/cache/issues/984)) | ||||
|  | ||||
| ### 3.0.11 | ||||
|  | ||||
| - Update toolkit version to 3.0.5 to include `@actions/core@^1.10.0` | ||||
| - Update `@actions/cache` to use updated `saveState` and `setOutput` functions from `@actions/core@^1.10.0` | ||||
|  | ||||
| ### 3.0.10 | ||||
|  | ||||
| - Fix a bug with sorting inputs. | ||||
| - Update definition for restore-keys in README.md | ||||
|  | ||||
| ### 3.0.9 | ||||
|  | ||||
| - Enhanced the warning message for cache unavailablity in case of GHES. | ||||
|  | ||||
| ### 3.0.8 | ||||
|  | ||||
| - Fix zstd not working for windows on gnu tar in issues [#888](https://github.com/actions/cache/issues/888) and [#891](https://github.com/actions/cache/issues/891). | ||||
| - Allowing users to provide a custom timeout as input for aborting download of a cache segment using an environment variable `SEGMENT_DOWNLOAD_TIMEOUT_MINS`. Default is 60 minutes. | ||||
|  | ||||
| ### 3.0.7 | ||||
|  | ||||
| - Fixed [#810](https://github.com/actions/cache/issues/810) - download stuck issue. A new timeout is introduced in the download process to abort the download if it gets stuck and doesn't finish within an hour. | ||||
|  | ||||
| ### 3.0.6 | ||||
|  | ||||
| - Fixed [#809](https://github.com/actions/cache/issues/809) - zstd -d: no such file or directory error | ||||
| - Fixed [#833](https://github.com/actions/cache/issues/833) - cache doesn't work with github workspace directory | ||||
|  | ||||
| ### 3.0.5 | ||||
|  | ||||
| - Removed error handling by consuming actions/cache 3.0 toolkit, Now cache server error handling will be done by toolkit. ([PR](https://github.com/actions/cache/pull/834)) | ||||
|  | ||||
| ### 3.0.4 | ||||
|  | ||||
| - Fixed tar creation error while trying to create tar with path as `~/` home folder on `ubuntu-latest`. ([issue](https://github.com/actions/cache/issues/689)) | ||||
|  | ||||
| ### 3.0.3 | ||||
|  | ||||
| - Fixed avoiding empty cache save when no files are available for caching. ([issue](https://github.com/actions/cache/issues/624)) | ||||
|  | ||||
| ### 3.0.2 | ||||
|  | ||||
| - Added support for dynamic cache size cap on GHES. | ||||
|  | ||||
| ### 3.0.1 | ||||
|  | ||||
| - Added support for caching from GHES 3.5. | ||||
| - Fixed download issue for files > 2GB during restore. | ||||
|  | ||||
| ### 3.0.0 | ||||
|  | ||||
| - Updated minimum runner version support from node 12 -> node 16 | ||||
|  | ||||
| @ -8,17 +8,26 @@ import * as testUtils from "../src/utils/testUtils"; | ||||
| jest.mock("@actions/core"); | ||||
| jest.mock("@actions/cache"); | ||||
|  | ||||
| let pristineEnv: NodeJS.ProcessEnv; | ||||
|  | ||||
| beforeAll(() => { | ||||
|     pristineEnv = process.env; | ||||
|     jest.spyOn(core, "getInput").mockImplementation((name, options) => { | ||||
|         return jest.requireActual("@actions/core").getInput(name, options); | ||||
|     }); | ||||
| }); | ||||
|  | ||||
| afterEach(() => { | ||||
| beforeEach(() => { | ||||
|     jest.resetModules(); | ||||
|     process.env = pristineEnv; | ||||
|     delete process.env[Events.Key]; | ||||
|     delete process.env[RefKey]; | ||||
| }); | ||||
|  | ||||
| afterAll(() => { | ||||
|     process.env = pristineEnv; | ||||
| }); | ||||
|  | ||||
| test("isGhes returns true if server url is not github.com", () => { | ||||
|     try { | ||||
|         process.env["GITHUB_SERVER_URL"] = "http://example.com"; | ||||
| @ -231,3 +240,28 @@ test("isCacheFeatureAvailable for ac disabled on dotcom", () => { | ||||
|         delete process.env["GITHUB_SERVER_URL"]; | ||||
|     } | ||||
| }); | ||||
|  | ||||
| test("isGhes returns false when the GITHUB_SERVER_URL environment variable is not defined", async () => { | ||||
|     delete process.env["GITHUB_SERVER_URL"]; | ||||
|     expect(actionUtils.isGhes()).toBeFalsy(); | ||||
| }); | ||||
|  | ||||
| test("isGhes returns false when the GITHUB_SERVER_URL environment variable is set to github.com", async () => { | ||||
|     process.env["GITHUB_SERVER_URL"] = "https://github.com"; | ||||
|     expect(actionUtils.isGhes()).toBeFalsy(); | ||||
| }); | ||||
|  | ||||
| test("isGhes returns false when the GITHUB_SERVER_URL environment variable is set to a GitHub Enterprise Cloud-style URL", async () => { | ||||
|     process.env["GITHUB_SERVER_URL"] = "https://contoso.ghe.com"; | ||||
|     expect(actionUtils.isGhes()).toBeFalsy(); | ||||
| }); | ||||
|  | ||||
| test("isGhes returns false when the GITHUB_SERVER_URL environment variable has a .localhost suffix", async () => { | ||||
|     process.env["GITHUB_SERVER_URL"] = "https://mock-github.localhost"; | ||||
|     expect(actionUtils.isGhes()).toBeFalsy(); | ||||
| }); | ||||
|  | ||||
| test("isGhes returns true when the GITHUB_SERVER_URL environment variable is set to some other URL", async () => { | ||||
|     process.env["GITHUB_SERVER_URL"] = "https://src.onpremise.fabrikam.com"; | ||||
|     expect(actionUtils.isGhes()).toBeTruthy(); | ||||
| }); | ||||
|  | ||||
| @ -2,7 +2,7 @@ import * as cache from "@actions/cache"; | ||||
| import * as core from "@actions/core"; | ||||
|  | ||||
| import { Events, RefKey } from "../src/constants"; | ||||
| import run from "../src/restore"; | ||||
| import { restoreRun } from "../src/restoreImpl"; | ||||
| import * as actionUtils from "../src/utils/actionUtils"; | ||||
| import * as testUtils from "../src/utils/testUtils"; | ||||
|  | ||||
| @ -71,10 +71,18 @@ test("restore with no cache found", async () => { | ||||
|             return Promise.resolve(undefined); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await restoreRun(); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith([path], key, [], {}, false); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [], | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
|     expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); | ||||
|     expect(stateMock).toHaveBeenCalledTimes(1); | ||||
| @ -106,14 +114,16 @@ test("restore with restore keys and no cache found", async () => { | ||||
|             return Promise.resolve(undefined); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await restoreRun(); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [restoreKey], | ||||
|         {}, | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
| @ -146,10 +156,18 @@ test("restore with cache found for key", async () => { | ||||
|             return Promise.resolve(key); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await restoreRun(); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith([path], key, [], {}, false); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [], | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
|     expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); | ||||
|     expect(stateMock).toHaveBeenCalledWith("CACHE_RESULT", key); | ||||
| @ -183,14 +201,16 @@ test("restore with cache found for restore key", async () => { | ||||
|             return Promise.resolve(restoreKey); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await restoreRun(); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [restoreKey], | ||||
|         {}, | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
| @ -226,14 +246,16 @@ test("Fail restore when fail on cache miss is enabled and primary + restore keys | ||||
|             return Promise.resolve(undefined); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await restoreRun(); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [restoreKey], | ||||
|         {}, | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
| @ -267,14 +289,16 @@ test("restore when fail on cache miss is enabled and primary key doesn't match r | ||||
|             return Promise.resolve(restoreKey); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await restoreRun(); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [restoreKey], | ||||
|         {}, | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
| @ -311,14 +335,16 @@ test("restore with fail on cache miss disabled and no cache found", async () => | ||||
|             return Promise.resolve(undefined); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await restoreRun(); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [restoreKey], | ||||
|         {}, | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
|  | ||||
| @ -2,7 +2,7 @@ import * as cache from "@actions/cache"; | ||||
| import * as core from "@actions/core"; | ||||
|  | ||||
| import { Events, Inputs, RefKey } from "../src/constants"; | ||||
| import run from "../src/restoreImpl"; | ||||
| import { restoreImpl } from "../src/restoreImpl"; | ||||
| import { StateProvider } from "../src/stateProvider"; | ||||
| import * as actionUtils from "../src/utils/actionUtils"; | ||||
| import * as testUtils from "../src/utils/testUtils"; | ||||
| @ -60,7 +60,7 @@ test("restore with invalid event outputs warning", async () => { | ||||
|     const invalidEvent = "commit_comment"; | ||||
|     process.env[Events.Key] = invalidEvent; | ||||
|     delete process.env[RefKey]; | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|     expect(logWarningMock).toHaveBeenCalledWith( | ||||
|         `Event Validation Error: The event type ${invalidEvent} is not supported because it's not tied to a branch or tag ref.` | ||||
|     ); | ||||
| @ -76,7 +76,7 @@ test("restore without AC available should no-op", async () => { | ||||
|     const restoreCacheMock = jest.spyOn(cache, "restoreCache"); | ||||
|     const setCacheHitOutputMock = jest.spyOn(core, "setOutput"); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(0); | ||||
|     expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1); | ||||
| @ -92,7 +92,7 @@ test("restore on GHES without AC available should no-op", async () => { | ||||
|     const restoreCacheMock = jest.spyOn(cache, "restoreCache"); | ||||
|     const setCacheHitOutputMock = jest.spyOn(core, "setOutput"); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(0); | ||||
|     expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1); | ||||
| @ -119,10 +119,18 @@ test("restore on GHES with AC available ", async () => { | ||||
|             return Promise.resolve(key); | ||||
|         }); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith([path], key, [], {}, false); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [], | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
|     expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); | ||||
|     expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1); | ||||
| @ -135,7 +143,7 @@ test("restore on GHES with AC available ", async () => { | ||||
| test("restore with no path should fail", async () => { | ||||
|     const failedMock = jest.spyOn(core, "setFailed"); | ||||
|     const restoreCacheMock = jest.spyOn(cache, "restoreCache"); | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(0); | ||||
|     // this input isn't necessary for restore b/c tarball contains entries relative to workspace | ||||
|     expect(failedMock).not.toHaveBeenCalledWith( | ||||
| @ -147,7 +155,7 @@ test("restore with no key", async () => { | ||||
|     testUtils.setInput(Inputs.Path, "node_modules"); | ||||
|     const failedMock = jest.spyOn(core, "setFailed"); | ||||
|     const restoreCacheMock = jest.spyOn(cache, "restoreCache"); | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(0); | ||||
|     expect(failedMock).toHaveBeenCalledWith( | ||||
|         "Input required and not supplied: key" | ||||
| @ -166,13 +174,15 @@ test("restore with too many keys should fail", async () => { | ||||
|     }); | ||||
|     const failedMock = jest.spyOn(core, "setFailed"); | ||||
|     const restoreCacheMock = jest.spyOn(cache, "restoreCache"); | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         restoreKeys, | ||||
|         {}, | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|     expect(failedMock).toHaveBeenCalledWith( | ||||
| @ -190,9 +200,17 @@ test("restore with large key should fail", async () => { | ||||
|     }); | ||||
|     const failedMock = jest.spyOn(core, "setFailed"); | ||||
|     const restoreCacheMock = jest.spyOn(cache, "restoreCache"); | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith([path], key, [], {}, false); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [], | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|     expect(failedMock).toHaveBeenCalledWith( | ||||
|         `Key Validation Error: ${key} cannot be larger than 512 characters.` | ||||
|     ); | ||||
| @ -208,9 +226,17 @@ test("restore with invalid key should fail", async () => { | ||||
|     }); | ||||
|     const failedMock = jest.spyOn(core, "setFailed"); | ||||
|     const restoreCacheMock = jest.spyOn(cache, "restoreCache"); | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith([path], key, [], {}, false); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [], | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|     expect(failedMock).toHaveBeenCalledWith( | ||||
|         `Key Validation Error: ${key} cannot contain commas.` | ||||
|     ); | ||||
| @ -234,10 +260,18 @@ test("restore with no cache found", async () => { | ||||
|             return Promise.resolve(undefined); | ||||
|         }); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith([path], key, [], {}, false); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [], | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
|     expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); | ||||
|     expect(failedMock).toHaveBeenCalledTimes(0); | ||||
| @ -267,14 +301,16 @@ test("restore with restore keys and no cache found", async () => { | ||||
|             return Promise.resolve(undefined); | ||||
|         }); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [restoreKey], | ||||
|         {}, | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
| @ -305,10 +341,18 @@ test("restore with cache found for key", async () => { | ||||
|             return Promise.resolve(key); | ||||
|         }); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith([path], key, [], {}, false); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [], | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
|     expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); | ||||
|     expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1); | ||||
| @ -339,14 +383,16 @@ test("restore with cache found for restore key", async () => { | ||||
|             return Promise.resolve(restoreKey); | ||||
|         }); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await restoreImpl(new StateProvider()); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [restoreKey], | ||||
|         {}, | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
| @ -358,3 +404,64 @@ test("restore with cache found for restore key", async () => { | ||||
|     ); | ||||
|     expect(failedMock).toHaveBeenCalledTimes(0); | ||||
| }); | ||||
|  | ||||
| test("restore with lookup-only set", async () => { | ||||
|     const path = "node_modules"; | ||||
|     const key = "node-test"; | ||||
|     testUtils.setInputs({ | ||||
|         path: path, | ||||
|         key, | ||||
|         lookupOnly: true | ||||
|     }); | ||||
|  | ||||
|     const infoMock = jest.spyOn(core, "info"); | ||||
|     const failedMock = jest.spyOn(core, "setFailed"); | ||||
|     const stateMock = jest.spyOn(core, "saveState"); | ||||
|     const setCacheHitOutputMock = jest.spyOn(core, "setOutput"); | ||||
|     const restoreCacheMock = jest | ||||
|         .spyOn(cache, "restoreCache") | ||||
|         .mockImplementationOnce(() => { | ||||
|             return Promise.resolve(key); | ||||
|         }); | ||||
|  | ||||
|     await restoreImpl(new StateProvider()); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [], | ||||
|         { | ||||
|             lookupOnly: true | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
|     expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key); | ||||
|     expect(stateMock).toHaveBeenCalledWith("CACHE_RESULT", key); | ||||
|     expect(stateMock).toHaveBeenCalledTimes(2); | ||||
|  | ||||
|     expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1); | ||||
|     expect(setCacheHitOutputMock).toHaveBeenCalledWith("cache-hit", "true"); | ||||
|  | ||||
|     expect(infoMock).toHaveBeenCalledWith( | ||||
|         `Cache found and can be restored from key: ${key}` | ||||
|     ); | ||||
|     expect(failedMock).toHaveBeenCalledTimes(0); | ||||
| }); | ||||
|  | ||||
| test("restore failure with earlyExit should call process exit", async () => { | ||||
|     testUtils.setInput(Inputs.Path, "node_modules"); | ||||
|     const failedMock = jest.spyOn(core, "setFailed"); | ||||
|     const restoreCacheMock = jest.spyOn(cache, "restoreCache"); | ||||
|     const processExitMock = jest.spyOn(process, "exit").mockImplementation(); | ||||
|  | ||||
|     // call restoreImpl with `earlyExit` set to true | ||||
|     await restoreImpl(new StateProvider(), true); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(0); | ||||
|     expect(failedMock).toHaveBeenCalledWith( | ||||
|         "Input required and not supplied: key" | ||||
|     ); | ||||
|     expect(processExitMock).toHaveBeenCalledWith(1); | ||||
| }); | ||||
|  | ||||
| @ -2,7 +2,7 @@ import * as cache from "@actions/cache"; | ||||
| import * as core from "@actions/core"; | ||||
|  | ||||
| import { Events, RefKey } from "../src/constants"; | ||||
| import run from "../src/restoreOnly"; | ||||
| import { restoreOnlyRun } from "../src/restoreImpl"; | ||||
| import * as actionUtils from "../src/utils/actionUtils"; | ||||
| import * as testUtils from "../src/utils/testUtils"; | ||||
|  | ||||
| @ -72,10 +72,18 @@ test("restore with no cache found", async () => { | ||||
|             return Promise.resolve(undefined); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await restoreOnlyRun(); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith([path], key, [], {}, false); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [], | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
|     expect(outputMock).toHaveBeenCalledWith("cache-primary-key", key); | ||||
|     expect(outputMock).toHaveBeenCalledTimes(1); | ||||
| @ -106,14 +114,16 @@ test("restore with restore keys and no cache found", async () => { | ||||
|             return Promise.resolve(undefined); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await restoreOnlyRun(); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [restoreKey], | ||||
|         {}, | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
| @ -143,10 +153,18 @@ test("restore with cache found for key", async () => { | ||||
|             return Promise.resolve(key); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await restoreOnlyRun(); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith([path], key, [], {}, false); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [], | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
|     expect(outputMock).toHaveBeenCalledWith("cache-primary-key", key); | ||||
|     expect(outputMock).toHaveBeenCalledWith("cache-hit", "true"); | ||||
| @ -178,14 +196,16 @@ test("restore with cache found for restore key", async () => { | ||||
|             return Promise.resolve(restoreKey); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await restoreOnlyRun(); | ||||
|  | ||||
|     expect(restoreCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(restoreCacheMock).toHaveBeenCalledWith( | ||||
|         [path], | ||||
|         key, | ||||
|         [restoreKey], | ||||
|         {}, | ||||
|         { | ||||
|             lookupOnly: false | ||||
|         }, | ||||
|         false | ||||
|     ); | ||||
|  | ||||
|  | ||||
| @ -2,7 +2,7 @@ import * as cache from "@actions/cache"; | ||||
| import * as core from "@actions/core"; | ||||
|  | ||||
| import { Events, Inputs, RefKey } from "../src/constants"; | ||||
| import run from "../src/save"; | ||||
| import { saveRun } from "../src/saveImpl"; | ||||
| import * as actionUtils from "../src/utils/actionUtils"; | ||||
| import * as testUtils from "../src/utils/testUtils"; | ||||
|  | ||||
| @ -100,7 +100,7 @@ test("save with valid inputs uploads a cache", async () => { | ||||
|             return Promise.resolve(cacheId); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await saveRun(); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(saveCacheMock).toHaveBeenCalledWith( | ||||
|  | ||||
| @ -2,7 +2,7 @@ import * as cache from "@actions/cache"; | ||||
| import * as core from "@actions/core"; | ||||
|  | ||||
| import { Events, Inputs, RefKey } from "../src/constants"; | ||||
| import run from "../src/saveImpl"; | ||||
| import { saveImpl } from "../src/saveImpl"; | ||||
| import { StateProvider } from "../src/stateProvider"; | ||||
| import * as actionUtils from "../src/utils/actionUtils"; | ||||
| import * as testUtils from "../src/utils/testUtils"; | ||||
| @ -77,7 +77,7 @@ test("save with invalid event outputs warning", async () => { | ||||
|     const invalidEvent = "commit_comment"; | ||||
|     process.env[Events.Key] = invalidEvent; | ||||
|     delete process.env[RefKey]; | ||||
|     await run(new StateProvider()); | ||||
|     await saveImpl(new StateProvider()); | ||||
|     expect(logWarningMock).toHaveBeenCalledWith( | ||||
|         `Event Validation Error: The event type ${invalidEvent} is not supported because it's not tied to a branch or tag ref.` | ||||
|     ); | ||||
| @ -100,7 +100,7 @@ test("save with no primary key in state outputs warning", async () => { | ||||
|         }); | ||||
|     const saveCacheMock = jest.spyOn(cache, "saveCache"); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await saveImpl(new StateProvider()); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(0); | ||||
|     expect(logWarningMock).toHaveBeenCalledWith(`Key is not specified.`); | ||||
| @ -115,7 +115,7 @@ test("save without AC available should no-op", async () => { | ||||
|  | ||||
|     const saveCacheMock = jest.spyOn(cache, "saveCache"); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await saveImpl(new StateProvider()); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(0); | ||||
| }); | ||||
| @ -128,7 +128,7 @@ test("save on ghes without AC available should no-op", async () => { | ||||
|  | ||||
|     const saveCacheMock = jest.spyOn(cache, "saveCache"); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await saveImpl(new StateProvider()); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(0); | ||||
| }); | ||||
| @ -161,7 +161,7 @@ test("save on GHES with AC available", async () => { | ||||
|             return Promise.resolve(cacheId); | ||||
|         }); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await saveImpl(new StateProvider()); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(saveCacheMock).toHaveBeenCalledWith( | ||||
| @ -194,7 +194,7 @@ test("save with exact match returns early", async () => { | ||||
|         }); | ||||
|     const saveCacheMock = jest.spyOn(cache, "saveCache"); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await saveImpl(new StateProvider()); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(0); | ||||
|     expect(infoMock).toHaveBeenCalledWith( | ||||
| @ -221,7 +221,7 @@ test("save with missing input outputs warning", async () => { | ||||
|         }); | ||||
|     const saveCacheMock = jest.spyOn(cache, "saveCache"); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await saveImpl(new StateProvider()); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(0); | ||||
|     expect(logWarningMock).toHaveBeenCalledWith( | ||||
| @ -259,7 +259,7 @@ test("save with large cache outputs warning", async () => { | ||||
|             ); | ||||
|         }); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await saveImpl(new StateProvider()); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(saveCacheMock).toHaveBeenCalledWith( | ||||
| @ -306,7 +306,7 @@ test("save with reserve cache failure outputs warning", async () => { | ||||
|             throw error; | ||||
|         }); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await saveImpl(new StateProvider()); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(saveCacheMock).toHaveBeenCalledWith( | ||||
| @ -349,7 +349,7 @@ test("save with server error outputs warning", async () => { | ||||
|             throw new Error("HTTP Error Occurred"); | ||||
|         }); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await saveImpl(new StateProvider()); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(saveCacheMock).toHaveBeenCalledWith( | ||||
| @ -392,7 +392,7 @@ test("save with valid inputs uploads a cache", async () => { | ||||
|             return Promise.resolve(cacheId); | ||||
|         }); | ||||
|  | ||||
|     await run(new StateProvider()); | ||||
|     await saveImpl(new StateProvider()); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(saveCacheMock).toHaveBeenCalledWith( | ||||
|  | ||||
| @ -2,7 +2,7 @@ import * as cache from "@actions/cache"; | ||||
| import * as core from "@actions/core"; | ||||
|  | ||||
| import { Events, Inputs, RefKey } from "../src/constants"; | ||||
| import run from "../src/saveOnly"; | ||||
| import { saveOnlyRun } from "../src/saveImpl"; | ||||
| import * as actionUtils from "../src/utils/actionUtils"; | ||||
| import * as testUtils from "../src/utils/testUtils"; | ||||
|  | ||||
| @ -90,7 +90,7 @@ test("save with valid inputs uploads a cache", async () => { | ||||
|             return Promise.resolve(cacheId); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await saveOnlyRun(); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(saveCacheMock).toHaveBeenCalledWith( | ||||
| @ -122,7 +122,7 @@ test("save failing logs the warning message", async () => { | ||||
|             return Promise.resolve(cacheId); | ||||
|         }); | ||||
|  | ||||
|     await run(); | ||||
|     await saveOnlyRun(); | ||||
|  | ||||
|     expect(saveCacheMock).toHaveBeenCalledTimes(1); | ||||
|     expect(saveCacheMock).toHaveBeenCalledWith( | ||||
|  | ||||
							
								
								
									
										18
									
								
								action.yml
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								action.yml
									
									
									
									
									
								
							| @ -9,7 +9,7 @@ inputs: | ||||
|     description: 'An explicit key for restoring and saving the cache' | ||||
|     required: true | ||||
|   restore-keys: | ||||
|     description: 'An ordered list of keys to use for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.' | ||||
|     description: 'An ordered multiline string listing the prefix-matched keys, that are used for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.' | ||||
|     required: false | ||||
|   upload-chunk-size: | ||||
|     description: 'The chunk size used to split up large files during upload, in bytes' | ||||
| @ -22,14 +22,26 @@ inputs: | ||||
|     description: 'Fail the workflow if cache entry is not found' | ||||
|     default: 'false' | ||||
|     required: false | ||||
|   lookup-only: | ||||
|     description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache' | ||||
|     default: 'false' | ||||
|     required: false | ||||
|   save-always: | ||||
|     description: 'Run the post step to save the cache even if another step before fails' | ||||
|     default: 'false' | ||||
|     required: false | ||||
|     deprecationMessage: | | ||||
|       save-always does not work as intended and will be removed in a future release. | ||||
|       A separate `actions/cache/restore` step should be used instead. | ||||
|       See https://github.com/actions/cache/tree/main/save#always-save-cache for more details. | ||||
| outputs: | ||||
|   cache-hit: | ||||
|     description: 'A boolean value to indicate an exact match was found for the primary key' | ||||
| runs: | ||||
|   using: 'node16' | ||||
|   using: 'node20' | ||||
|   main: 'dist/restore/index.js' | ||||
|   post: 'dist/save/index.js' | ||||
|   post-if: success() | ||||
|   post-if: "success()" | ||||
| branding: | ||||
|   icon: 'archive' | ||||
|   color: 'gray-dark' | ||||
|  | ||||
| @ -12,7 +12,7 @@ This document lists some of the strategies (and example workflows if possible) w | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: ubuntu-latest | ||||
|     - uses: actions/cache@v3 | ||||
|     - uses: actions/cache@v4 | ||||
|       with: | ||||
|         key: ${{ some-metadata }}-cache | ||||
| ``` | ||||
| @ -24,7 +24,7 @@ In your workflows, you can use different strategies to name your key depending o | ||||
| One of the most common use case is to use hash for lockfile as key. This way, same cache will be restored for a lockfile until there's a change in dependencies listed in lockfile. | ||||
|  | ||||
| ```yaml | ||||
|   - uses: actions/cache@v3 | ||||
|   - uses: actions/cache@v4 | ||||
|     with: | ||||
|       path: | | ||||
|         path/to/dependencies | ||||
| @ -37,7 +37,7 @@ One of the most common use case is to use hash for lockfile as key. This way, sa | ||||
| If cache is not found matching the primary key, restore keys can be used to download the closest matching cache that was recently created. This ensures that the build/install step will need to additionally fetch just a handful of newer dependencies, and hence saving build time. | ||||
|  | ||||
| ```yaml | ||||
|   - uses: actions/cache@v3 | ||||
|   - uses: actions/cache@v4 | ||||
|     with: | ||||
|       path: | | ||||
|         path/to/dependencies | ||||
| @ -54,7 +54,7 @@ The restore keys can be provided as a complete name, or a prefix, read more [her | ||||
| In case of workflows with matrix running for multiple Operating Systems, the caches can be stored separately for each of them. This can be used in combination with hashfiles in case multiple caches are being generated per OS. | ||||
|  | ||||
| ```yaml | ||||
|   - uses: actions/cache@v3 | ||||
|   - uses: actions/cache@v4 | ||||
|     with: | ||||
|       path: | | ||||
|         path/to/dependencies | ||||
| @ -73,7 +73,7 @@ Caches scoped to the particular workflow run id or run attempt can be stored and | ||||
| On similar lines, commit sha can be used to create a very specialized and short lived cache. | ||||
|  | ||||
| ```yaml | ||||
|   - uses: actions/cache@v3 | ||||
|   - uses: actions/cache@v4 | ||||
|     with: | ||||
|       path: | | ||||
|         path/to/dependencies | ||||
| @ -81,12 +81,12 @@ On similar lines, commit sha can be used to create a very specialized and short | ||||
|       key: cache-${{ github.sha }} | ||||
| ``` | ||||
|  | ||||
| ### Using multiple factors while forming a key depening on the need | ||||
| ### Using multiple factors while forming a key depending on the need | ||||
|  | ||||
| Cache key can be formed by combination of more than one metadata, evaluated info. | ||||
|  | ||||
| ```yaml | ||||
|   - uses: actions/cache@v3 | ||||
|   - uses: actions/cache@v4 | ||||
|     with: | ||||
|       path: | | ||||
|         path/to/dependencies | ||||
| @ -102,7 +102,7 @@ The [GitHub Context](https://docs.github.com/en/actions/learn-github-actions/con | ||||
|  | ||||
| While setting paths for caching dependencies it is important to give correct path depending on the hosted runner you are using or whether the action is running in a container job. Assigning different `path` for save and restore will result in cache miss. | ||||
|  | ||||
| Below are GiHub hosted runner specific paths one should take care of when writing a workflow which saves/restores caches across OS. | ||||
| Below are GitHub hosted runner specific paths one should take care of when writing a workflow which saves/restores caches across OS. | ||||
|  | ||||
| #### Ubuntu Paths | ||||
|  | ||||
| @ -146,9 +146,9 @@ In case you are using a centralized job to create and save your cache that can b | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   - uses: actions/checkout@v4 | ||||
|  | ||||
|   - uses: actions/cache/restore@v3 | ||||
|   - uses: actions/cache/restore@v4 | ||||
|     id: cache | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
| @ -171,9 +171,9 @@ You can use the output of this action to exit the workflow on cache miss. This w | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   - uses: actions/checkout@v4 | ||||
|  | ||||
|   - uses: actions/cache/restore@v3 | ||||
|   - uses: actions/cache/restore@v4 | ||||
|     id: cache | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
| @ -194,7 +194,7 @@ steps: | ||||
| If you want to avoid re-computing the cache key again in `save` action, the outputs from `restore` action can be used as input to the `save` action. | ||||
|  | ||||
| ```yaml | ||||
|   - uses: actions/cache/restore@v3 | ||||
|   - uses: actions/cache/restore@v4 | ||||
|     id: restore-cache | ||||
|     with: | ||||
|       path: | | ||||
| @ -204,7 +204,7 @@ If you want to avoid re-computing the cache key again in `save` action, the outp | ||||
|   . | ||||
|   . | ||||
|   . | ||||
|   - uses: actions/cache/save@v3 | ||||
|   - uses: actions/cache/save@v4 | ||||
|     with: | ||||
|       path: | | ||||
|         path/to/dependencies | ||||
| @ -219,7 +219,7 @@ On the other hand, the key can also be explicitly re-computed while executing th | ||||
| Let's say we have a restore step that computes key at runtime | ||||
|  | ||||
| ```yaml | ||||
| uses: actions/cache/restore@v3 | ||||
| uses: actions/cache/restore@v4 | ||||
| id: restore-cache | ||||
| with: | ||||
|     key: cache-${{ hashFiles('**/lockfiles') }} | ||||
| @ -228,7 +228,7 @@ with: | ||||
| Case 1: Where an user would want to reuse the key as it is | ||||
|  | ||||
| ```yaml | ||||
| uses: actions/cache/save@v3 | ||||
| uses: actions/cache/save@v4 | ||||
| with: | ||||
|     key: ${{ steps.restore-cache.outputs.cache-primary-key }} | ||||
| ``` | ||||
| @ -236,31 +236,14 @@ with: | ||||
| Case 2: Where the user would want to re-evaluate the key | ||||
|  | ||||
| ```yaml | ||||
| uses: actions/cache/save@v3 | ||||
| uses: actions/cache/save@v4 | ||||
| with: | ||||
|     key: npm-cache-${{hashfiles(package-lock.json)}} | ||||
| ``` | ||||
|  | ||||
| ### Saving cache even if the build fails | ||||
|  | ||||
| There can be cases where a cache should be saved even if the build job fails. For example, a job can fail due to flaky tests but the caches can still be re-used. You can use `actions/cache/save` action to save the cache by using `if: always()` condition. | ||||
|  | ||||
| Similarly, `actions/cache/save` action can be conditionally used based on the output of the previous steps. This way you get more control on when to save the cache. | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   . | ||||
|   . // restore if need be | ||||
|   . | ||||
|   - name: Build | ||||
|     run: /build.sh | ||||
|   - uses: actions/cache/save@v3 | ||||
|     if: always() // or any other condition to invoke the save action | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
|       key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||||
| ``` | ||||
| See [Always save cache](./save/README.md#always-save-cache). | ||||
|  | ||||
| ### Saving cache once and reusing in multiple workflows | ||||
|  | ||||
| @ -270,12 +253,12 @@ In case of multi-module projects, where the built artifact of one project needs | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   - uses: actions/checkout@v4 | ||||
|  | ||||
|   - name: Build | ||||
|     run: ./build-parent-module.sh | ||||
|  | ||||
|   - uses: actions/cache/save@v3 | ||||
|   - uses: actions/cache/save@v4 | ||||
|     id: cache | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
| @ -286,9 +269,9 @@ steps: | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   - uses: actions/checkout@v4 | ||||
|  | ||||
|   - uses: actions/cache/restore@v3 | ||||
|   - uses: actions/cache/restore@v4 | ||||
|     id: cache | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
|  | ||||
							
								
								
									
										65437
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										65437
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										65481
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										65481
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										65373
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										65373
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										65348
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										65348
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										137
									
								
								examples.md
									
									
									
									
									
								
							
							
						
						
									
										137
									
								
								examples.md
									
									
									
									
									
								
							| @ -1,5 +1,6 @@ | ||||
| # Examples | ||||
|  | ||||
| - [Bun](#bun) | ||||
| - [C# - NuGet](#c---nuget) | ||||
| - [Clojure - Lein Deps](#clojure---lein-deps) | ||||
| - [D - DUB](#d---dub) | ||||
| @ -39,13 +40,34 @@ | ||||
| - [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods) | ||||
| - [Swift - Swift Package Manager](#swift---swift-package-manager) | ||||
| - [Swift - Mint](#swift---mint) | ||||
| - [* - Bazel](#---bazel) | ||||
|  | ||||
| ## Bun | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~/.bun/install/cache | ||||
|     key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} | ||||
| ``` | ||||
|  | ||||
| ### Windows | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~\.bun | ||||
|     key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} | ||||
| ``` | ||||
|  | ||||
| ## C# - NuGet | ||||
|  | ||||
| Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/package-references-in-project-files#locking-dependencies): | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: ~/.nuget/packages | ||||
|     key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||||
| @ -54,10 +76,10 @@ Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/packa | ||||
| ``` | ||||
|  | ||||
| Depending on the environment, huge packages might be pre-installed in the global cache folder. | ||||
| With `actions/cache@v3` you can now exclude unwanted packages with [exclude pattern](https://github.com/actions/toolkit/tree/main/packages/glob#exclude-patterns) | ||||
| With `actions/cache@v4` you can now exclude unwanted packages with [exclude pattern](https://github.com/actions/toolkit/tree/main/packages/glob#exclude-patterns) | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~/.nuget/packages | ||||
| @ -74,7 +96,7 @@ Or you could move the cache folder like below. | ||||
| env: | ||||
|   NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | ||||
| steps: | ||||
|   - uses: actions/cache@v3 | ||||
|   - uses: actions/cache@v4 | ||||
|     with: | ||||
|       path: ${{ github.workspace }}/.nuget/packages | ||||
|       key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||||
| @ -86,7 +108,7 @@ steps: | ||||
|  | ||||
| ```yaml | ||||
| - name: Cache lein project dependencies | ||||
|   uses: actions/cache@v3 | ||||
|   uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: ~/.m2/repository | ||||
|     key: ${{ runner.os }}-clojure-${{ hashFiles('**/project.clj') }} | ||||
| @ -100,7 +122,7 @@ steps: | ||||
| ### POSIX | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: ~/.dub | ||||
|     key: ${{ runner.os }}-dub-${{ hashFiles('**/dub.selections.json') }} | ||||
| @ -111,7 +133,7 @@ steps: | ||||
| ### Windows | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: ~\AppData\Local\dub | ||||
|     key: ${{ runner.os }}-dub-${{ hashFiles('**/dub.selections.json') }} | ||||
| @ -124,7 +146,7 @@ steps: | ||||
| ### Linux | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~/.deno | ||||
| @ -135,7 +157,7 @@ steps: | ||||
| ### macOS | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~/.deno | ||||
| @ -146,7 +168,7 @@ steps: | ||||
| ### Windows | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~\.deno | ||||
| @ -157,7 +179,7 @@ steps: | ||||
| ## Elixir - Mix | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       deps | ||||
| @ -184,7 +206,7 @@ steps: | ||||
| ### Linux | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~/.cache/go-build | ||||
| @ -197,7 +219,7 @@ steps: | ||||
| ### macOS | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~/Library/Caches/go-build | ||||
| @ -210,7 +232,7 @@ steps: | ||||
| ### Windows | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~\AppData\Local\go-build | ||||
| @ -226,7 +248,7 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba | ||||
|  | ||||
| ```yaml | ||||
| - name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle | ||||
|   uses: actions/cache@v3 | ||||
|   uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~/.cabal/packages | ||||
| @ -241,14 +263,14 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba | ||||
| ### Linux or macOS | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   name: Cache ~/.stack | ||||
|   with: | ||||
|     path: ~/.stack | ||||
|     key: ${{ runner.os }}-stack-global-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }} | ||||
|     restore-keys: | | ||||
|       ${{ runner.os }}-stack-global- | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   name: Cache .stack-work | ||||
|   with: | ||||
|     path: .stack-work | ||||
| @ -260,7 +282,7 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba | ||||
| ### Windows | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   name: Cache %APPDATA%\stack %LOCALAPPDATA%\Programs\stack | ||||
|   with: | ||||
|     path: | | ||||
| @ -269,7 +291,7 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba | ||||
|     key: ${{ runner.os }}-stack-global-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }} | ||||
|     restore-keys: | | ||||
|       ${{ runner.os }}-stack-global- | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   name: Cache .stack-work | ||||
|   with: | ||||
|     path: .stack-work | ||||
| @ -283,7 +305,7 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba | ||||
| > **Note** Ensure no Gradle daemons are running anymore when your workflow completes. Creating the cache package might fail due to locks being held by Gradle. Refer to the [Gradle Daemon documentation](https://docs.gradle.org/current/userguide/gradle_daemon.html) on how to disable or stop the Gradle Daemons. | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~/.gradle/caches | ||||
| @ -297,7 +319,7 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba | ||||
|  | ||||
| ```yaml | ||||
| - name: Cache local Maven repository | ||||
|   uses: actions/cache@v3 | ||||
|   uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: ~/.m2/repository | ||||
|     key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||||
| @ -333,7 +355,7 @@ After [deprecation](https://github.blog/changelog/2022-10-11-github-actions-depr | ||||
| `Get npm cache directory` step can then be used with `actions/cache` as shown below | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true' | ||||
|   with: | ||||
|     path: ${{ steps.npm-cache-dir.outputs.dir }} | ||||
| @ -346,7 +368,7 @@ After [deprecation](https://github.blog/changelog/2022-10-11-github-actions-depr | ||||
|  | ||||
| ```yaml | ||||
| - name: restore lerna | ||||
|   uses: actions/cache@v3 | ||||
|   uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: '**/node_modules' | ||||
|     key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | ||||
| @ -360,7 +382,7 @@ The yarn cache directory will depend on your operating system and version of `ya | ||||
|   id: yarn-cache-dir-path | ||||
|   run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||||
|  | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||||
|   with: | ||||
|     path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||||
| @ -378,7 +400,7 @@ The yarn 2 cache directory will depend on your config. See https://yarnpkg.com/c | ||||
|   id: yarn-cache-dir-path | ||||
|   run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||||
|  | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||||
|   with: | ||||
|     path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||||
| @ -393,7 +415,7 @@ Esy allows you to export built dependencies and import pre-built dependencies. | ||||
| ```yaml | ||||
|     - name: Restore Cache | ||||
|       id: restore-cache | ||||
|       uses: actions/cache@v3 | ||||
|       uses: actions/cache@v4 | ||||
|       with: | ||||
|         path: _export | ||||
|         key:  ${{ runner.os }}-esy-${{ hashFiles('esy.lock/index.json') }} | ||||
| @ -422,7 +444,7 @@ Esy allows you to export built dependencies and import pre-built dependencies. | ||||
|   id: composer-cache | ||||
|   run: | | ||||
|     echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: ${{ steps.composer-cache.outputs.dir }} | ||||
|     key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||||
| @ -443,7 +465,7 @@ Locations: | ||||
| ### Simple example | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: ~/.cache/pip | ||||
|     key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||||
| @ -456,7 +478,7 @@ Replace `~/.cache/pip` with the correct `path` if not using Ubuntu. | ||||
| ### Multiple OS's in a workflow | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   if: startsWith(runner.os, 'Linux') | ||||
|   with: | ||||
|     path: ~/.cache/pip | ||||
| @ -464,7 +486,7 @@ Replace `~/.cache/pip` with the correct `path` if not using Ubuntu. | ||||
|     restore-keys: | | ||||
|       ${{ runner.os }}-pip- | ||||
|  | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   if: startsWith(runner.os, 'macOS') | ||||
|   with: | ||||
|     path: ~/Library/Caches/pip | ||||
| @ -472,7 +494,7 @@ Replace `~/.cache/pip` with the correct `path` if not using Ubuntu. | ||||
|     restore-keys: | | ||||
|       ${{ runner.os }}-pip- | ||||
|  | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   if: startsWith(runner.os, 'Windows') | ||||
|   with: | ||||
|     path: ~\AppData\Local\pip\Cache | ||||
| @ -498,7 +520,7 @@ jobs: | ||||
|         - os: windows-latest | ||||
|           path: ~\AppData\Local\pip\Cache | ||||
|     steps: | ||||
|     - uses: actions/cache@v3 | ||||
|     - uses: actions/cache@v4 | ||||
|       with: | ||||
|         path: ${{ matrix.path }} | ||||
|         key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||||
| @ -512,11 +534,12 @@ jobs: | ||||
| ```yaml | ||||
| - name: Get pip cache dir | ||||
|   id: pip-cache | ||||
|   shell: bash | ||||
|   run: | | ||||
|     echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | ||||
|  | ||||
| - name: pip cache | ||||
|   uses: actions/cache@v3 | ||||
|   uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: ${{ steps.pip-cache.outputs.dir }} | ||||
|     key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||||
| @ -534,7 +557,7 @@ jobs: | ||||
|  | ||||
|   ⋮ | ||||
|  | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: ~/.local/share/virtualenvs | ||||
|     key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }} | ||||
| @ -561,7 +584,7 @@ For renv, the cache directory will vary by OS. The `RENV_PATHS_ROOT` environment | ||||
|     cat("##[set-output name=r-version;]", R.Version()$version.string, sep = "") | ||||
|   shell: Rscript {0} | ||||
| - name: Restore Renv package cache | ||||
|   uses: actions/cache@v3 | ||||
|   uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: ${{ env.RENV_PATHS_ROOT }} | ||||
|     key: ${{ steps.get-version.outputs.os-version }}-${{ steps.get-version.outputs.r-version }}-${{ inputs.cache-version }}-${{ hashFiles('renv.lock') }} | ||||
| @ -587,7 +610,7 @@ whenever possible: | ||||
| ## Rust - Cargo | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~/.cargo/bin/ | ||||
| @ -602,7 +625,7 @@ whenever possible: | ||||
|  | ||||
| ```yaml | ||||
| - name: Cache SBT | ||||
|   uses: actions/cache@v3 | ||||
|   uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~/.ivy2/cache | ||||
| @ -613,7 +636,7 @@ whenever possible: | ||||
| ## Swift, Objective-C - Carthage | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: Carthage | ||||
|     key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} | ||||
| @ -624,7 +647,7 @@ whenever possible: | ||||
| ## Swift, Objective-C - CocoaPods | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: Pods | ||||
|     key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||||
| @ -635,7 +658,7 @@ whenever possible: | ||||
| ## Swift - Swift Package Manager | ||||
|  | ||||
| ```yaml | ||||
| - uses: actions/cache@v3 | ||||
| - uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: .build | ||||
|     key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | ||||
| @ -650,10 +673,42 @@ env: | ||||
|   MINT_PATH: .mint/lib | ||||
|   MINT_LINK_PATH: .mint/bin | ||||
| steps: | ||||
|   - uses: actions/cache@v3 | ||||
|   - uses: actions/cache@v4 | ||||
|     with: | ||||
|       path: .mint | ||||
|       key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }} | ||||
|       restore-keys: | | ||||
|         ${{ runner.os }}-mint- | ||||
| ``` | ||||
|  | ||||
| ## * - Bazel | ||||
|  | ||||
| [`bazelisk`](https://github.com/bazelbuild/bazelisk) does not have be to separately downloaded and installed because it's already included in GitHub's `ubuntu-latest` and `macos-latest` base images. | ||||
|  | ||||
| ### Linux | ||||
|  | ||||
| ```yaml | ||||
| - name: Cache Bazel | ||||
|   uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       ~/.cache/bazel | ||||
|     key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel') }} | ||||
|     restore-keys: | | ||||
|       ${{ runner.os }}-bazel- | ||||
| - run: bazelisk test //... | ||||
| ``` | ||||
|  | ||||
| ### macOS | ||||
|  | ||||
| ```yaml | ||||
| - name: Cache Bazel | ||||
|   uses: actions/cache@v4 | ||||
|   with: | ||||
|     path: | | ||||
|       /private/var/tmp/_bazel_runner/ | ||||
|     key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel') }} | ||||
|     restore-keys: | | ||||
|       ${{ runner.os }}-bazel- | ||||
| - run: bazelisk test //... | ||||
| ``` | ||||
|  | ||||
							
								
								
									
										2120
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2120
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										10
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								package.json
									
									
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "cache", | ||||
|   "version": "3.2.6", | ||||
|   "version": "4.2.4", | ||||
|   "private": true, | ||||
|   "description": "Cache dependencies and build outputs", | ||||
|   "main": "dist/restore/index.js", | ||||
| @ -23,10 +23,10 @@ | ||||
|   "author": "GitHub", | ||||
|   "license": "MIT", | ||||
|   "dependencies": { | ||||
|     "@actions/cache": "^3.1.4", | ||||
|     "@actions/core": "^1.10.0", | ||||
|     "@actions/cache": "^4.0.5", | ||||
|     "@actions/core": "^1.11.1", | ||||
|     "@actions/exec": "^1.1.1", | ||||
|     "@actions/io": "^1.1.2" | ||||
|     "@actions/io": "^1.1.3" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@types/jest": "^27.5.2", | ||||
| @ -34,7 +34,7 @@ | ||||
|     "@types/node": "^16.18.3", | ||||
|     "@typescript-eslint/eslint-plugin": "^5.45.0", | ||||
|     "@typescript-eslint/parser": "^5.45.0", | ||||
|     "@zeit/ncc": "^0.20.5", | ||||
|     "@vercel/ncc": "^0.38.3", | ||||
|     "eslint": "^8.28.0", | ||||
|     "eslint-config-prettier": "^8.5.0", | ||||
|     "eslint-plugin-import": "^2.26.0", | ||||
|  | ||||
| @ -9,7 +9,8 @@ The restore action restores a cache. It works similarly to the `cache` action ex | ||||
| * `key` - An explicit key for a cache entry. See [creating a cache key](../README.md#creating-a-cache-key). | ||||
| * `path` - A list of files, directories, and wildcard patterns to restore. See [`@actions/glob`](https://github.com/actions/toolkit/tree/main/packages/glob) for supported patterns. | ||||
| * `restore-keys` - An ordered list of prefix-matched keys to use for restoring stale cache if no cache hit occurred for key. | ||||
| * `fail-on-cache-miss` - Fail the workflow if cache entry is not found. Default: false | ||||
| * `fail-on-cache-miss` - Fail the workflow if cache entry is not found. Default: `false` | ||||
| * `lookup-only` - If true, only checks if cache entry exists and skips download. Default: `false` | ||||
|  | ||||
| ### Outputs | ||||
|  | ||||
| @ -22,7 +23,7 @@ The restore action restores a cache. It works similarly to the `cache` action ex | ||||
|  | ||||
| ### Environment Variables | ||||
|  | ||||
| * `SEGMENT_DOWNLOAD_TIMEOUT_MINS` - Segment download timeout (in minutes, default `60`) to abort download of the segment if not completed in the defined number of minutes. [Read more](https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout) | ||||
| * `SEGMENT_DOWNLOAD_TIMEOUT_MINS` - Segment download timeout (in minutes, default `10`) to abort download of the segment if not completed in the defined number of minutes. [Read more](https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout) | ||||
|  | ||||
| ## Use cases | ||||
|  | ||||
| @ -34,9 +35,9 @@ If you are using separate jobs to create and save your cache(s) to be reused by | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   - uses: actions/checkout@v4 | ||||
|  | ||||
|   - uses: actions/cache/restore@v3 | ||||
|   - uses: actions/cache/restore@v4 | ||||
|     id: cache | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
| @ -63,12 +64,12 @@ In case of multi-module projects, where the built artifact of one project needs | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   - uses: actions/checkout@v4 | ||||
|  | ||||
|   - name: Build | ||||
|     run: /build-parent-module.sh | ||||
|  | ||||
|   - uses: actions/cache/save@v3 | ||||
|   - uses: actions/cache/save@v4 | ||||
|     id: cache | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
| @ -79,9 +80,9 @@ steps: | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   - uses: actions/checkout@v4 | ||||
|  | ||||
|   - uses: actions/cache/restore@v3 | ||||
|   - uses: actions/cache/restore@v4 | ||||
|     id: cache | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
| @ -106,9 +107,9 @@ To fail if there is no cache hit for the primary key, leave `restore-keys` empty | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   - uses: actions/checkout@v4 | ||||
|  | ||||
|   - uses: actions/cache/restore@v3 | ||||
|   - uses: actions/cache/restore@v4 | ||||
|     id: cache | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
|  | ||||
| @ -9,7 +9,7 @@ inputs: | ||||
|     description: 'An explicit key for restoring the cache' | ||||
|     required: true | ||||
|   restore-keys: | ||||
|     description: 'An ordered list of keys to use for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.' | ||||
|     description: 'An ordered multiline string listing the prefix-matched keys, that are used for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.' | ||||
|     required: false | ||||
|   enableCrossOsArchive: | ||||
|     description: 'An optional boolean when enabled, allows windows runners to restore caches that were saved on other platforms' | ||||
| @ -19,6 +19,10 @@ inputs: | ||||
|     description: 'Fail the workflow if cache entry is not found' | ||||
|     default: 'false' | ||||
|     required: false | ||||
|   lookup-only: | ||||
|     description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache' | ||||
|     default: 'false' | ||||
|     required: false | ||||
| outputs: | ||||
|   cache-hit: | ||||
|     description: 'A boolean value to indicate an exact match was found for the primary key' | ||||
| @ -27,7 +31,7 @@ outputs: | ||||
|   cache-matched-key: | ||||
|     description: 'Key of the cache that was restored, it could either be the primary key on cache-hit or a partial/complete match of one of the restore keys' | ||||
| runs: | ||||
|   using: 'node16' | ||||
|   using: 'node20' | ||||
|   main: '../dist/restore-only/index.js' | ||||
| branding: | ||||
|   icon: 'archive' | ||||
|  | ||||
| @ -23,7 +23,7 @@ If you are using separate jobs for generating common artifacts and sharing them | ||||
|  | ||||
| ```yaml | ||||
| steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   - uses: actions/checkout@v4 | ||||
|  | ||||
|   - name: Install Dependencies | ||||
|     run: /install.sh | ||||
| @ -31,7 +31,7 @@ steps: | ||||
|   - name: Build artifacts | ||||
|     run: /build.sh | ||||
|  | ||||
|   - uses: actions/cache/save@v3 | ||||
|   - uses: actions/cache/save@v4 | ||||
|     id: cache | ||||
|     with: | ||||
|       path: path/to/dependencies | ||||
| @ -47,7 +47,7 @@ Let's say we have a restore step that computes a key at runtime. | ||||
| #### Restore a cache | ||||
|  | ||||
| ```yaml | ||||
| uses: actions/cache/restore@v3 | ||||
| uses: actions/cache/restore@v4 | ||||
| id: restore-cache | ||||
| with: | ||||
|     key: cache-${{ hashFiles('**/lockfiles') }} | ||||
| @ -55,7 +55,7 @@ with: | ||||
|  | ||||
| #### Case 1 - Where a user would want to reuse the key as it is | ||||
| ```yaml | ||||
| uses: actions/cache/save@v3 | ||||
| uses: actions/cache/save@v4 | ||||
| with: | ||||
|     key: ${{ steps.restore-cache.outputs.cache-primary-key }} | ||||
| ``` | ||||
| @ -63,26 +63,54 @@ with: | ||||
| #### Case 2 - Where the user would want to re-evaluate the key | ||||
|  | ||||
| ```yaml | ||||
| uses: actions/cache/save@v3 | ||||
| uses: actions/cache/save@v4 | ||||
| with: | ||||
|     key: npm-cache-${{hashfiles(package-lock.json)}} | ||||
| ``` | ||||
|  | ||||
| ### Always save cache | ||||
|  | ||||
| There are instances where some flaky test cases would fail the entire workflow and users would get frustrated because the builds would run for hours and the cache couldn't be saved as the workflow failed in between. For such use-cases, users now have the ability to use the `actions/cache/save` action to save the cache by using an `if: always()` condition. This way the cache will always be saved if generated, or a warning will be generated that nothing is found on the cache path. Users can also use the `if` condition to only execute the `actions/cache/save` action depending on the output of previous steps. This way they get more control of when to save the cache. | ||||
| There are instances where some flaky test cases would fail the entire workflow and users would get frustrated because the builds would run for hours and the cache couldn't be saved as the workflow failed in between. | ||||
| For such use-cases, users now have the ability to use the `actions/cache/save` action to save the cache by using an [`always()`](https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/expressions#always) condition. | ||||
| This way the cache will always be saved if generated, or a warning will be generated that nothing is found on the cache path. Users can also use the `if` condition to only execute the `actions/cache/save` action depending on the output of previous steps. This way they get more control of when to save the cache. | ||||
|  | ||||
| To avoid saving a cache that already exists, the `cache-hit` output from a restore step should be checked. | ||||
|  | ||||
| The `cache-primary-key` output from the restore step should also be used to ensure | ||||
| the cache key does not change during the build if it's calculated based on file contents. | ||||
|  | ||||
| Here's an example where we imagine we're calculating a lot of prime numbers and want to cache them: | ||||
|  | ||||
| ```yaml | ||||
| name: Always Caching Prime Numbers | ||||
|  | ||||
| on: push | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
|   - uses: actions/checkout@v3 | ||||
|   . | ||||
|   . // restore if need be | ||||
|   . | ||||
|   - name: Build | ||||
|     run: /build.sh | ||||
|   - uses: actions/cache/save@v3 | ||||
|     if: always() // or any other condition to invoke the save action | ||||
|     - uses: actions/checkout@v4 | ||||
|  | ||||
|     - name: Restore cached Prime Numbers | ||||
|       id: cache-prime-numbers-restore | ||||
|       uses: actions/cache/restore@v4 | ||||
|       with: | ||||
|       path: path/to/dependencies | ||||
|       key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||||
|         key: ${{ runner.os }}-prime-numbers | ||||
|         path: | | ||||
|           path/to/dependencies | ||||
|           some/other/dependencies | ||||
|  | ||||
|     # Intermediate workflow steps | ||||
|  | ||||
|     - name: Always Save Prime Numbers | ||||
|       id: cache-prime-numbers-save | ||||
|       if: always() && steps.cache-prime-numbers-restore.outputs.cache-hit != 'true' | ||||
|       uses: actions/cache/save@v4 | ||||
|       with: | ||||
|         key: ${{ steps.cache-prime-numbers-restore.outputs.cache-primary-key }} | ||||
|         path: | | ||||
|           path/to/dependencies | ||||
|           some/other/dependencies | ||||
| ``` | ||||
|  | ||||
| @ -16,7 +16,7 @@ inputs: | ||||
|     default: 'false' | ||||
|     required: false | ||||
| runs: | ||||
|   using: 'node16' | ||||
|   using: 'node20' | ||||
|   main: '../dist/save-only/index.js' | ||||
| branding: | ||||
|   icon: 'archive' | ||||
|  | ||||
| @ -4,7 +4,8 @@ export enum Inputs { | ||||
|     RestoreKeys = "restore-keys", // Input for cache, restore action | ||||
|     UploadChunkSize = "upload-chunk-size", // Input for cache, save action | ||||
|     EnableCrossOsArchive = "enableCrossOsArchive", // Input for cache, restore, save action | ||||
|     FailOnCacheMiss = "fail-on-cache-miss" // Input for cache, restore action | ||||
|     FailOnCacheMiss = "fail-on-cache-miss", // Input for cache, restore action | ||||
|     LookupOnly = "lookup-only" // Input for cache, restore action | ||||
| } | ||||
|  | ||||
| export enum Outputs { | ||||
|  | ||||
| @ -1,10 +1,3 @@ | ||||
| import restoreImpl from "./restoreImpl"; | ||||
| import { StateProvider } from "./stateProvider"; | ||||
| import { restoreRun } from "./restoreImpl"; | ||||
|  | ||||
| async function run(): Promise<void> { | ||||
|     await restoreImpl(new StateProvider()); | ||||
| } | ||||
|  | ||||
| run(); | ||||
|  | ||||
| export default run; | ||||
| restoreRun(true); | ||||
|  | ||||
| @ -2,11 +2,16 @@ import * as cache from "@actions/cache"; | ||||
| import * as core from "@actions/core"; | ||||
|  | ||||
| import { Events, Inputs, Outputs, State } from "./constants"; | ||||
| import { IStateProvider } from "./stateProvider"; | ||||
| import { | ||||
|     IStateProvider, | ||||
|     NullStateProvider, | ||||
|     StateProvider | ||||
| } from "./stateProvider"; | ||||
| import * as utils from "./utils/actionUtils"; | ||||
|  | ||||
| async function restoreImpl( | ||||
|     stateProvider: IStateProvider | ||||
| export async function restoreImpl( | ||||
|     stateProvider: IStateProvider, | ||||
|     earlyExit?: boolean | undefined | ||||
| ): Promise<string | undefined> { | ||||
|     try { | ||||
|         if (!utils.isCacheFeatureAvailable()) { | ||||
| @ -35,16 +40,20 @@ async function restoreImpl( | ||||
|             Inputs.EnableCrossOsArchive | ||||
|         ); | ||||
|         const failOnCacheMiss = utils.getInputAsBool(Inputs.FailOnCacheMiss); | ||||
|         const lookupOnly = utils.getInputAsBool(Inputs.LookupOnly); | ||||
|  | ||||
|         const cacheKey = await cache.restoreCache( | ||||
|             cachePaths, | ||||
|             primaryKey, | ||||
|             restoreKeys, | ||||
|             {}, | ||||
|             { lookupOnly: lookupOnly }, | ||||
|             enableCrossOsArchive | ||||
|         ); | ||||
|  | ||||
|         if (!cacheKey) { | ||||
|             // `cache-hit` is intentionally not set to `false` here to preserve existing behavior | ||||
|             // See https://github.com/actions/cache/issues/1466 | ||||
|  | ||||
|             if (failOnCacheMiss) { | ||||
|                 throw new Error( | ||||
|                     `Failed to restore cache entry. Exiting as fail-on-cache-miss is set. Input key: ${primaryKey}` | ||||
| @ -56,7 +65,6 @@ async function restoreImpl( | ||||
|                     ...restoreKeys | ||||
|                 ].join(", ")}` | ||||
|             ); | ||||
|  | ||||
|             return; | ||||
|         } | ||||
|  | ||||
| @ -69,12 +77,45 @@ async function restoreImpl( | ||||
|         ); | ||||
|  | ||||
|         core.setOutput(Outputs.CacheHit, isExactKeyMatch.toString()); | ||||
|         if (lookupOnly) { | ||||
|             core.info(`Cache found and can be restored from key: ${cacheKey}`); | ||||
|         } else { | ||||
|             core.info(`Cache restored from key: ${cacheKey}`); | ||||
|         } | ||||
|  | ||||
|         return cacheKey; | ||||
|     } catch (error: unknown) { | ||||
|         core.setFailed((error as Error).message); | ||||
|         if (earlyExit) { | ||||
|             process.exit(1); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| export default restoreImpl; | ||||
| async function run( | ||||
|     stateProvider: IStateProvider, | ||||
|     earlyExit: boolean | undefined | ||||
| ): Promise<void> { | ||||
|     await restoreImpl(stateProvider, earlyExit); | ||||
|  | ||||
|     // node will stay alive if any promises are not resolved, | ||||
|     // which is a possibility if HTTP requests are dangling | ||||
|     // due to retries or timeouts. We know that if we got here | ||||
|     // that all promises that we care about have successfully | ||||
|     // resolved, so simply exit with success. | ||||
|     if (earlyExit) { | ||||
|         process.exit(0); | ||||
|     } | ||||
| } | ||||
|  | ||||
| export async function restoreOnlyRun( | ||||
|     earlyExit?: boolean | undefined | ||||
| ): Promise<void> { | ||||
|     await run(new NullStateProvider(), earlyExit); | ||||
| } | ||||
|  | ||||
| export async function restoreRun( | ||||
|     earlyExit?: boolean | undefined | ||||
| ): Promise<void> { | ||||
|     await run(new StateProvider(), earlyExit); | ||||
| } | ||||
|  | ||||
| @ -1,10 +1,3 @@ | ||||
| import restoreImpl from "./restoreImpl"; | ||||
| import { NullStateProvider } from "./stateProvider"; | ||||
| import { restoreOnlyRun } from "./restoreImpl"; | ||||
|  | ||||
| async function run(): Promise<void> { | ||||
|     await restoreImpl(new NullStateProvider()); | ||||
| } | ||||
|  | ||||
| run(); | ||||
|  | ||||
| export default run; | ||||
| restoreOnlyRun(true); | ||||
|  | ||||
							
								
								
									
										11
									
								
								src/save.ts
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/save.ts
									
									
									
									
									
								
							| @ -1,10 +1,3 @@ | ||||
| import saveImpl from "./saveImpl"; | ||||
| import { StateProvider } from "./stateProvider"; | ||||
| import { saveRun } from "./saveImpl"; | ||||
|  | ||||
| async function run(): Promise<void> { | ||||
|     await saveImpl(new StateProvider()); | ||||
| } | ||||
|  | ||||
| run(); | ||||
|  | ||||
| export default run; | ||||
| saveRun(true); | ||||
|  | ||||
| @ -2,7 +2,11 @@ import * as cache from "@actions/cache"; | ||||
| import * as core from "@actions/core"; | ||||
|  | ||||
| import { Events, Inputs, State } from "./constants"; | ||||
| import { IStateProvider } from "./stateProvider"; | ||||
| import { | ||||
|     IStateProvider, | ||||
|     NullStateProvider, | ||||
|     StateProvider | ||||
| } from "./stateProvider"; | ||||
| import * as utils from "./utils/actionUtils"; | ||||
|  | ||||
| // Catch and log any unhandled exceptions.  These exceptions can leak out of the uploadChunk method in | ||||
| @ -10,7 +14,9 @@ import * as utils from "./utils/actionUtils"; | ||||
| // throw an uncaught exception.  Instead of failing this action, just warn. | ||||
| process.on("uncaughtException", e => utils.logWarning(e.message)); | ||||
|  | ||||
| async function saveImpl(stateProvider: IStateProvider): Promise<number | void> { | ||||
| export async function saveImpl( | ||||
|     stateProvider: IStateProvider | ||||
| ): Promise<number | void> { | ||||
|     let cacheId = -1; | ||||
|     try { | ||||
|         if (!utils.isCacheFeatureAvailable()) { | ||||
| @ -72,4 +78,47 @@ async function saveImpl(stateProvider: IStateProvider): Promise<number | void> { | ||||
|     return cacheId; | ||||
| } | ||||
|  | ||||
| export default saveImpl; | ||||
| export async function saveOnlyRun( | ||||
|     earlyExit?: boolean | undefined | ||||
| ): Promise<void> { | ||||
|     try { | ||||
|         const cacheId = await saveImpl(new NullStateProvider()); | ||||
|         if (cacheId === -1) { | ||||
|             core.warning(`Cache save failed.`); | ||||
|         } | ||||
|     } catch (err) { | ||||
|         console.error(err); | ||||
|         if (earlyExit) { | ||||
|             process.exit(1); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     // node will stay alive if any promises are not resolved, | ||||
|     // which is a possibility if HTTP requests are dangling | ||||
|     // due to retries or timeouts. We know that if we got here | ||||
|     // that all promises that we care about have successfully | ||||
|     // resolved, so simply exit with success. | ||||
|     if (earlyExit) { | ||||
|         process.exit(0); | ||||
|     } | ||||
| } | ||||
|  | ||||
| export async function saveRun(earlyExit?: boolean | undefined): Promise<void> { | ||||
|     try { | ||||
|         await saveImpl(new StateProvider()); | ||||
|     } catch (err) { | ||||
|         console.error(err); | ||||
|         if (earlyExit) { | ||||
|             process.exit(1); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     // node will stay alive if any promises are not resolved, | ||||
|     // which is a possibility if HTTP requests are dangling | ||||
|     // due to retries or timeouts. We know that if we got here | ||||
|     // that all promises that we care about have successfully | ||||
|     // resolved, so simply exit with success. | ||||
|     if (earlyExit) { | ||||
|         process.exit(0); | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -1,15 +1,3 @@ | ||||
| import * as core from "@actions/core"; | ||||
| import { saveOnlyRun } from "./saveImpl"; | ||||
|  | ||||
| import saveImpl from "./saveImpl"; | ||||
| import { NullStateProvider } from "./stateProvider"; | ||||
|  | ||||
| async function run(): Promise<void> { | ||||
|     const cacheId = await saveImpl(new NullStateProvider()); | ||||
|     if (cacheId === -1) { | ||||
|         core.warning(`Cache save failed.`); | ||||
|     } | ||||
| } | ||||
|  | ||||
| run(); | ||||
|  | ||||
| export default run; | ||||
| saveOnlyRun(true); | ||||
|  | ||||
| @ -7,7 +7,13 @@ export function isGhes(): boolean { | ||||
|     const ghUrl = new URL( | ||||
|         process.env["GITHUB_SERVER_URL"] || "https://github.com" | ||||
|     ); | ||||
|     return ghUrl.hostname.toUpperCase() !== "GITHUB.COM"; | ||||
|  | ||||
|     const hostname = ghUrl.hostname.trimEnd().toUpperCase(); | ||||
|     const isGitHubHost = hostname === "GITHUB.COM"; | ||||
|     const isGitHubEnterpriseCloudHost = hostname.endsWith(".GHE.COM"); | ||||
|     const isLocalHost = hostname.endsWith(".LOCALHOST"); | ||||
|  | ||||
|     return !isGitHubHost && !isGitHubEnterpriseCloudHost && !isLocalHost; | ||||
| } | ||||
|  | ||||
| export function isExactKeyMatch(key: string, cacheKey?: string): boolean { | ||||
|  | ||||
| @ -15,6 +15,7 @@ interface CacheInput { | ||||
|     restoreKeys?: string[]; | ||||
|     enableCrossOsArchive?: boolean; | ||||
|     failOnCacheMiss?: boolean; | ||||
|     lookupOnly?: boolean; | ||||
| } | ||||
|  | ||||
| export function setInputs(input: CacheInput): void { | ||||
| @ -29,6 +30,8 @@ export function setInputs(input: CacheInput): void { | ||||
|         ); | ||||
|     input.failOnCacheMiss !== undefined && | ||||
|         setInput(Inputs.FailOnCacheMiss, input.failOnCacheMiss.toString()); | ||||
|     input.lookupOnly !== undefined && | ||||
|         setInput(Inputs.LookupOnly, input.lookupOnly.toString()); | ||||
| } | ||||
|  | ||||
| export function clearInputs(): void { | ||||
| @ -38,4 +41,5 @@ export function clearInputs(): void { | ||||
|     delete process.env[getInputName(Inputs.UploadChunkSize)]; | ||||
|     delete process.env[getInputName(Inputs.EnableCrossOsArchive)]; | ||||
|     delete process.env[getInputName(Inputs.FailOnCacheMiss)]; | ||||
|     delete process.env[getInputName(Inputs.LookupOnly)]; | ||||
| } | ||||
|  | ||||
| @ -1,35 +1,44 @@ | ||||
| # Tips and workarounds | ||||
|  | ||||
| ## Cache segment restore timeout | ||||
|  | ||||
| A cache gets downloaded in multiple segments of fixed sizes (`1GB` for a `32-bit` runner and `2GB` for a `64-bit` runner). Sometimes, a segment download gets stuck which causes the workflow job to be stuck forever and fail. Version `v3.0.8` of `actions/cache` introduces a segment download timeout. The segment download timeout will allow the segment download to get aborted and hence allow the job to proceed with a cache miss. | ||||
|  | ||||
| Default value of this timeout is 60 minutes and can be customized by specifying an [environment variable](https://docs.github.com/en/actions/learn-github-actions/environment-variables) named `SEGMENT_DOWNLOAD_TIMEOUT_MINS` with timeout value in minutes. | ||||
| Default value of this timeout is 10 minutes and can be customized by specifying an [environment variable](https://docs.github.com/en/actions/learn-github-actions/environment-variables) named `SEGMENT_DOWNLOAD_TIMEOUT_MINS` with timeout value in minutes. | ||||
|  | ||||
| ## Update a cache | ||||
|  | ||||
| A cache today is immutable and cannot be updated. But some use cases require the cache to be saved even though there was a "hit" during restore. To do so, use a `key` which is unique for every run and use `restore-keys` to restore the nearest cache. For example: | ||||
|  | ||||
|   ```yaml | ||||
|       - name: update cache on every commit | ||||
|         uses: actions/cache@v3 | ||||
|         uses: actions/cache@v4 | ||||
|         with: | ||||
|           path: prime-numbers | ||||
|           key: primes-${{ runner.os }}-${{ github.run_id }} # Can use time based key as well | ||||
|           restore-keys: | | ||||
|             primes-${{ runner.os }} | ||||
|   ``` | ||||
|  | ||||
|   Please note that this will create a new cache on every run and hence will consume the cache [quota](./README.md#cache-limits). | ||||
|    | ||||
| ## Use cache across feature branches | ||||
|  | ||||
| Reusing cache across feature branches is not allowed today to provide cache [isolation](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache). However if both feature branches are from the default branch, a good way to achieve this is to ensure that the default branch has a cache. This cache will then be consumable by both feature branches. | ||||
|  | ||||
| ## Cross OS cache | ||||
|  | ||||
| From `v3.2.3` cache is cross-os compatible when `enableCrossOsArchive` input is passed as true. This means that a cache created on `ubuntu-latest` or `mac-latest` can be used by `windows-latest` and vice versa, provided the workflow which runs on `windows-latest` have input `enableCrossOsArchive` as true. This is useful to cache dependencies which are independent of the runner platform. This will help reduce the consumption of the cache quota and help build for multiple platforms from the same cache. Things to keep in mind while using this feature: | ||||
| - Only cache those files which are compatible across OSs. | ||||
| - Caching symlinks might cause issues while restoration as they work differently on different OSs. | ||||
| - Only cache files from within your github workspace directory.  | ||||
| - Avoid using directory pointers such as `${{ github.workspace }}` or `~` (home) which eventually evaluate to an absolute path and will not match across OSs. | ||||
|  | ||||
| - Only cache files that are compatible across OSs. | ||||
| - Caching symlinks might cause issues while restoring them as they behave differently on different OSs. | ||||
| - Be mindful when caching files from outside your github workspace directory as the directory is located at different places across OS. | ||||
| - Avoid using directory pointers such as `${{ github.workspace }}` or `~` (home) which eventually evaluate to an absolute path that does not match across OSs. | ||||
|  | ||||
| ## Force deletion of caches overriding default cache eviction policy | ||||
| Caches have [branch scope restriction](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache) in place. This means that if caches for a specific branch are using a lot of storage quota, it may result into more frequently used caches from `default` branch getting thrashed. For example, if there are many pull requests happening on a repo and are creating caches, these cannot be used in default branch scope but will still occupy a lot of space till they get cleaned up by [eviction policy](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy). But sometime we want to clean them up on a faster cadence so as to ensure default branch is not thrashing. In order to achieve this, [gh-actions-cache cli](https://github.com/actions/gh-actions-cache/) can be used to delete caches for specific branches. | ||||
|  | ||||
| This workflow uses `gh-actions-cache` to delete all the caches created by a branch.  | ||||
| Caches have [branch scope restriction](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache) in place. This means that if caches for a specific branch are using a lot of storage quota, it may result into more frequently used caches from `default` branch getting thrashed. For example, if there are many pull requests happening on a repo and are creating caches, these cannot be used in default branch scope but will still occupy a lot of space till they get cleaned up by [eviction policy](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy). But sometime we want to clean them up on a faster cadence so as to ensure default branch is not thrashing. | ||||
|  | ||||
| <details> | ||||
|   <summary>Example</summary> | ||||
|  | ||||
| @ -44,29 +53,29 @@ on: | ||||
| jobs: | ||||
|   cleanup: | ||||
|     runs-on: ubuntu-latest | ||||
|     permissions: | ||||
|       # `actions:write` permission is required to delete caches | ||||
|       #   See also: https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id | ||||
|       actions: write | ||||
|       contents: read | ||||
|     steps: | ||||
|       - name: Check out code | ||||
|         uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: Cleanup | ||||
|         run: | | ||||
|           gh extension install actions/gh-actions-cache | ||||
|            | ||||
|           REPO=${{ github.repository }} | ||||
|           BRANCH=refs/pull/${{ github.event.pull_request.number }}/merge | ||||
|  | ||||
|           echo "Fetching list of cache key" | ||||
|           cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 ) | ||||
|           cacheKeysForPR=$(gh cache list --ref $BRANCH --limit 100 --json id --jq '.[].id') | ||||
|  | ||||
|           ## Setting this to not fail the workflow while deleting cache keys. | ||||
|           set +e | ||||
|           echo "Deleting caches..." | ||||
|           for cacheKey in $cacheKeysForPR | ||||
|           do | ||||
|               gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm | ||||
|               gh cache delete $cacheKey | ||||
|           done | ||||
|           echo "Done" | ||||
|         env: | ||||
|           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|           GH_REPO: ${{ github.repository }} | ||||
|           BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge | ||||
| ``` | ||||
|  | ||||
| </details> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	