mirror of
https://gitee.com/actions-mirror/upload-artifact.git
synced 2025-12-15 20:11:19 +08:00
Compare commits
No commits in common. "main" and "v4.3.6" have entirely different histories.
8
.github/workflows/codeql-analysis.yml
vendored
8
.github/workflows/codeql-analysis.yml
vendored
@ -17,11 +17,11 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
uses: github/codeql-action/init@v2
|
||||
# Override language selection by uncommenting this and choosing your languages
|
||||
# with:
|
||||
# languages: go, javascript, csharp, python, cpp, java
|
||||
@ -29,7 +29,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, 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@v3
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
@ -43,4 +43,4 @@ jobs:
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
uses: github/codeql-action/analyze@v2
|
||||
|
||||
20
.github/workflows/publish-immutable-actions.yml
vendored
20
.github/workflows/publish-immutable-actions.yml
vendored
@ -1,20 +0,0 @@
|
||||
name: 'Publish Immutable Action Version'
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
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
|
||||
43
.github/workflows/test.yml
vendored
43
.github/workflows/test.yml
vendored
@ -46,19 +46,14 @@ jobs:
|
||||
- name: Test
|
||||
run: npm run test
|
||||
|
||||
# Test end-to-end by uploading a few artifacts and then downloading them
|
||||
# Test end-to-end by uploading two artifacts and then downloading them
|
||||
- name: Create artifact files
|
||||
run: |
|
||||
mkdir -p path/to/dir-1
|
||||
mkdir -p path/to/dir-2
|
||||
mkdir -p path/to/dir-3
|
||||
mkdir -p symlink/
|
||||
echo "Lorem ipsum dolor sit amet" > path/to/dir-1/file1.txt
|
||||
echo "Hello world from file #2" > path/to/dir-2/file2.txt
|
||||
echo "Hello from a symlinked file" > symlink/original.txt
|
||||
ln -s $(pwd)/symlink/original.txt symlink/abs.txt
|
||||
ln -s original.txt symlink/rel.txt
|
||||
shell: bash
|
||||
|
||||
# Upload a single file artifact
|
||||
- name: 'Upload artifact #1'
|
||||
@ -84,14 +79,6 @@ jobs:
|
||||
path/to/dir-[23]/*
|
||||
!path/to/dir-3/*.txt
|
||||
|
||||
- name: 'Upload symlinked artifact'
|
||||
uses: ./
|
||||
with:
|
||||
name: 'Symlinked-Artifact-${{ matrix.runs-on }}'
|
||||
path: |
|
||||
symlink/abs.txt
|
||||
symlink/rel.txt
|
||||
|
||||
# Download Artifact #1 and verify the correctness of the content
|
||||
- name: 'Download artifact #1'
|
||||
uses: actions/download-artifact@v4
|
||||
@ -154,34 +141,6 @@ jobs:
|
||||
}
|
||||
shell: pwsh
|
||||
|
||||
- name: 'Download symlinked artifact'
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: 'Symlinked-Artifact-${{ matrix.runs-on }}'
|
||||
path: from/symlink
|
||||
|
||||
- name: 'Verify symlinked artifact'
|
||||
run: |
|
||||
$abs = "from/symlink/abs.txt"
|
||||
if(!(Test-Path -path $abs))
|
||||
{
|
||||
Write-Error "Expected file does not exist"
|
||||
}
|
||||
if(!((Get-Content $abs) -ceq "Hello from a symlinked file"))
|
||||
{
|
||||
Write-Error "File contents of downloaded artifact are incorrect"
|
||||
}
|
||||
$rel = "from/symlink/rel.txt"
|
||||
if(!(Test-Path -path $rel))
|
||||
{
|
||||
Write-Error "Expected file does not exist"
|
||||
}
|
||||
if(!((Get-Content $rel) -ceq "Hello from a symlinked file"))
|
||||
{
|
||||
Write-Error "File contents of downloaded artifact are incorrect"
|
||||
}
|
||||
shell: pwsh
|
||||
|
||||
- name: 'Alter file 1 content'
|
||||
run: |
|
||||
echo "This file has changed" > path/to/dir-1/file1.txt
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
sources:
|
||||
npm: true
|
||||
|
||||
# Force UTF-8 encoding
|
||||
encoding: 'utf-8'
|
||||
|
||||
allowed:
|
||||
- apache-2.0
|
||||
- bsd-2-clause
|
||||
@ -12,30 +9,7 @@ allowed:
|
||||
- mit
|
||||
- cc0-1.0
|
||||
- unlicense
|
||||
- 0bsd
|
||||
- blueoak-1.0.0
|
||||
|
||||
reviewed:
|
||||
npm:
|
||||
- fs.realpath
|
||||
- "@actions/http-client" # MIT
|
||||
- "@bufbuild/protobuf" # Apache-2.0
|
||||
- "@pkgjs/parseargs" # MIT
|
||||
- "@protobuf-ts/runtime" # Apache-2.0
|
||||
- argparse # Python-2.0
|
||||
- buffers # MIT
|
||||
- chainsaw # MIT
|
||||
- color-convert # MIT
|
||||
- ieee754 # BSD-3-Clause
|
||||
- lodash # MIT
|
||||
- mdurl # MIT
|
||||
- neo-async # MIT
|
||||
- package-json-from-dist # ISC
|
||||
- readable-stream # MIT
|
||||
- sax # ISC
|
||||
- source-map # BSD-3-Clause
|
||||
- string_decoder # MIT
|
||||
- traverse # MIT
|
||||
- tslib # 0BSD
|
||||
- uglify-js # BSD-2-Clause
|
||||
- wordwrap # MIT
|
||||
BIN
.licenses/npm/@actions/artifact.dep.yml
generated
BIN
.licenses/npm/@actions/artifact.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/core-1.11.1.dep.yml
generated
BIN
.licenses/npm/@actions/core-1.11.1.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/core-2.0.1.dep.yml
generated
BIN
.licenses/npm/@actions/core-2.0.1.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/core.dep.yml
generated
BIN
.licenses/npm/@actions/core.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/exec-1.1.1.dep.yml
generated
BIN
.licenses/npm/@actions/exec-1.1.1.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/exec-2.0.0.dep.yml
generated
BIN
.licenses/npm/@actions/exec-2.0.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/github.dep.yml
generated
BIN
.licenses/npm/@actions/github.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/glob.dep.yml
generated
BIN
.licenses/npm/@actions/glob.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/http-client-2.2.3.dep.yml
generated
BIN
.licenses/npm/@actions/http-client-2.2.3.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/http-client-3.0.0.dep.yml
generated
BIN
.licenses/npm/@actions/http-client-3.0.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/io-1.1.3.dep.yml
generated
BIN
.licenses/npm/@actions/io-1.1.3.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/io-2.0.0.dep.yml
generated
BIN
.licenses/npm/@actions/io-2.0.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@actions/io.dep.yml
generated
BIN
.licenses/npm/@actions/io.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/abort-controller.dep.yml
generated
BIN
.licenses/npm/@azure/abort-controller.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-auth.dep.yml
generated
BIN
.licenses/npm/@azure/core-auth.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-client.dep.yml
generated
BIN
.licenses/npm/@azure/core-client.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-http-compat.dep.yml
generated
BIN
.licenses/npm/@azure/core-http-compat.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-lro.dep.yml
generated
BIN
.licenses/npm/@azure/core-lro.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-paging.dep.yml
generated
BIN
.licenses/npm/@azure/core-paging.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-rest-pipeline.dep.yml
generated
BIN
.licenses/npm/@azure/core-rest-pipeline.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-tracing.dep.yml
generated
BIN
.licenses/npm/@azure/core-tracing.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-util.dep.yml
generated
BIN
.licenses/npm/@azure/core-util.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/core-xml.dep.yml
generated
BIN
.licenses/npm/@azure/core-xml.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/logger.dep.yml
generated
BIN
.licenses/npm/@azure/logger.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/storage-blob.dep.yml
generated
BIN
.licenses/npm/@azure/storage-blob.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@azure/storage-common.dep.yml
generated
BIN
.licenses/npm/@azure/storage-common.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@bufbuild/protobuf.dep.yml
generated
BIN
.licenses/npm/@bufbuild/protobuf.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@bufbuild/protoplugin.dep.yml
generated
BIN
.licenses/npm/@bufbuild/protoplugin.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@fastify/busboy.dep.yml
generated
BIN
.licenses/npm/@fastify/busboy.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@isaacs/cliui.dep.yml
generated
BIN
.licenses/npm/@isaacs/cliui.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/auth-token.dep.yml
generated
BIN
.licenses/npm/@octokit/auth-token.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/core.dep.yml
generated
BIN
.licenses/npm/@octokit/core.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/endpoint.dep.yml
generated
BIN
.licenses/npm/@octokit/endpoint.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/graphql.dep.yml
generated
BIN
.licenses/npm/@octokit/graphql.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/openapi-types-12.11.0.dep.yml
generated
BIN
.licenses/npm/@octokit/openapi-types-12.11.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/openapi-types-20.0.0.dep.yml
generated
BIN
.licenses/npm/@octokit/openapi-types-20.0.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/openapi-types-24.2.0.dep.yml
generated
BIN
.licenses/npm/@octokit/openapi-types-24.2.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/plugin-paginate-rest.dep.yml
generated
BIN
.licenses/npm/@octokit/plugin-paginate-rest.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/plugin-request-log.dep.yml
generated
BIN
.licenses/npm/@octokit/plugin-request-log.dep.yml
generated
Binary file not shown.
Binary file not shown.
BIN
.licenses/npm/@octokit/plugin-retry.dep.yml
generated
BIN
.licenses/npm/@octokit/plugin-retry.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/request-error.dep.yml
generated
BIN
.licenses/npm/@octokit/request-error.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/request.dep.yml
generated
BIN
.licenses/npm/@octokit/request.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/types-12.6.0.dep.yml
generated
BIN
.licenses/npm/@octokit/types-12.6.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/types-13.10.0.dep.yml
generated
BIN
.licenses/npm/@octokit/types-13.10.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@octokit/types-6.41.0.dep.yml
generated
BIN
.licenses/npm/@octokit/types-6.41.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@pkgjs/parseargs.dep.yml
generated
BIN
.licenses/npm/@pkgjs/parseargs.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@protobuf-ts/plugin.dep.yml
generated
BIN
.licenses/npm/@protobuf-ts/plugin.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@protobuf-ts/protoc.dep.yml
generated
BIN
.licenses/npm/@protobuf-ts/protoc.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@protobuf-ts/runtime-rpc.dep.yml
generated
BIN
.licenses/npm/@protobuf-ts/runtime-rpc.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@protobuf-ts/runtime.dep.yml
generated
BIN
.licenses/npm/@protobuf-ts/runtime.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@typescript/vfs.dep.yml
generated
BIN
.licenses/npm/@typescript/vfs.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/@typespec/ts-http-runtime.dep.yml
generated
BIN
.licenses/npm/@typespec/ts-http-runtime.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/abort-controller.dep.yml
generated
BIN
.licenses/npm/abort-controller.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/agent-base.dep.yml
generated
BIN
.licenses/npm/agent-base.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/ansi-regex-5.0.1.dep.yml
generated
BIN
.licenses/npm/ansi-regex-5.0.1.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/ansi-regex-6.2.2.dep.yml
generated
BIN
.licenses/npm/ansi-regex-6.2.2.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/ansi-styles-4.3.0.dep.yml
generated
BIN
.licenses/npm/ansi-styles-4.3.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/ansi-styles-6.2.3.dep.yml
generated
BIN
.licenses/npm/ansi-styles-6.2.3.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/archiver-utils.dep.yml
generated
BIN
.licenses/npm/archiver-utils.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/archiver.dep.yml
generated
BIN
.licenses/npm/archiver.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/async.dep.yml
generated
BIN
.licenses/npm/async.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/b4a.dep.yml
generated
BIN
.licenses/npm/b4a.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/balanced-match.dep.yml
generated
BIN
.licenses/npm/balanced-match.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/bare-events.dep.yml
generated
BIN
.licenses/npm/bare-events.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/base64-js.dep.yml
generated
BIN
.licenses/npm/base64-js.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/before-after-hook.dep.yml
generated
BIN
.licenses/npm/before-after-hook.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/binary.dep.yml
generated
BIN
.licenses/npm/binary.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/bottleneck.dep.yml
generated
BIN
.licenses/npm/bottleneck.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/brace-expansion-1.1.12.dep.yml
generated
BIN
.licenses/npm/brace-expansion-1.1.12.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/brace-expansion-2.0.2.dep.yml
generated
BIN
.licenses/npm/brace-expansion-2.0.2.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/buffer-crc32.dep.yml
generated
BIN
.licenses/npm/buffer-crc32.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/buffer.dep.yml
generated
BIN
.licenses/npm/buffer.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/buffers.dep.yml
generated
BIN
.licenses/npm/buffers.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/chainsaw.dep.yml
generated
BIN
.licenses/npm/chainsaw.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/color-convert.dep.yml
generated
BIN
.licenses/npm/color-convert.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/color-name.dep.yml
generated
BIN
.licenses/npm/color-name.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/compress-commons.dep.yml
generated
BIN
.licenses/npm/compress-commons.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/concat-map.dep.yml
generated
BIN
.licenses/npm/concat-map.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/core-util-is.dep.yml
generated
BIN
.licenses/npm/core-util-is.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/crc-32.dep.yml
generated
BIN
.licenses/npm/crc-32.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/crc32-stream.dep.yml
generated
BIN
.licenses/npm/crc32-stream.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/cross-spawn.dep.yml
generated
BIN
.licenses/npm/cross-spawn.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/debug.dep.yml
generated
BIN
.licenses/npm/debug.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/deprecation.dep.yml
generated
BIN
.licenses/npm/deprecation.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/eastasianwidth.dep.yml
generated
BIN
.licenses/npm/eastasianwidth.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/emoji-regex-8.0.0.dep.yml
generated
BIN
.licenses/npm/emoji-regex-8.0.0.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/emoji-regex-9.2.2.dep.yml
generated
BIN
.licenses/npm/emoji-regex-9.2.2.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/event-target-shim.dep.yml
generated
BIN
.licenses/npm/event-target-shim.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/events-universal.dep.yml
generated
BIN
.licenses/npm/events-universal.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/events.dep.yml
generated
BIN
.licenses/npm/events.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/fast-fifo.dep.yml
generated
BIN
.licenses/npm/fast-fifo.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/fast-xml-parser.dep.yml
generated
BIN
.licenses/npm/fast-xml-parser.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/foreground-child.dep.yml
generated
BIN
.licenses/npm/foreground-child.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/glob.dep.yml
generated
BIN
.licenses/npm/glob.dep.yml
generated
Binary file not shown.
BIN
.licenses/npm/graceful-fs.dep.yml
generated
BIN
.licenses/npm/graceful-fs.dep.yml
generated
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user