mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-25 19:25:30 +01:00
* download endpoint has to use 302 redirect * fake blob download used if direct download not possible * downloading v3 artifacts not possible New repo apis based on GitHub Rest V3 - GET /runs/{run}/artifacts (Cannot use run index of url due to not being unique) - GET /artifacts - GET + DELETE /artifacts/{artifact_id} - GET /artifacts/{artifact_id}/zip - (GET /artifacts/{artifact_id}/zip/raw this is a workaround for a http 302 assertion in actions/toolkit) - api docs removed this is protected by a signed url like the internal artifacts api and no longer usable with any token or swagger - returns http 401 if the signature is invalid - or change the artifact id - or expired after 1 hour Closes #33353 Closes #32124 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
90 lines
2.0 KiB
YAML
90 lines
2.0 KiB
YAML
-
|
|
id: 1
|
|
run_id: 791
|
|
runner_id: 1
|
|
repo_id: 4
|
|
owner_id: 1
|
|
commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0
|
|
storage_path: "26/1/1712166500347189545.chunk"
|
|
file_size: 1024
|
|
file_compressed_size: 1024
|
|
content_encoding: ""
|
|
artifact_path: "abc.txt"
|
|
artifact_name: "artifact-download"
|
|
status: 1
|
|
created_unix: 1712338649
|
|
updated_unix: 1712338649
|
|
expired_unix: 1720114649
|
|
|
|
-
|
|
id: 19
|
|
run_id: 791
|
|
runner_id: 1
|
|
repo_id: 4
|
|
owner_id: 1
|
|
commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0
|
|
storage_path: "26/19/1712348022422036662.chunk"
|
|
file_size: 1024
|
|
file_compressed_size: 1024
|
|
content_encoding: ""
|
|
artifact_path: "abc.txt"
|
|
artifact_name: "multi-file-download"
|
|
status: 2
|
|
created_unix: 1712348022
|
|
updated_unix: 1712348022
|
|
expired_unix: 1720124022
|
|
|
|
-
|
|
id: 20
|
|
run_id: 791
|
|
runner_id: 1
|
|
repo_id: 4
|
|
owner_id: 1
|
|
commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0
|
|
storage_path: "26/20/1712348022423431524.chunk"
|
|
file_size: 1024
|
|
file_compressed_size: 1024
|
|
content_encoding: ""
|
|
artifact_path: "xyz/def.txt"
|
|
artifact_name: "multi-file-download"
|
|
status: 2
|
|
created_unix: 1712348022
|
|
updated_unix: 1712348022
|
|
expired_unix: 1720124022
|
|
|
|
-
|
|
id: 22
|
|
run_id: 792
|
|
runner_id: 1
|
|
repo_id: 4
|
|
owner_id: 1
|
|
commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0
|
|
storage_path: "27/5/1730330775594233150.chunk"
|
|
file_size: 1024
|
|
file_compressed_size: 1024
|
|
content_encoding: "application/zip"
|
|
artifact_path: "artifact-v4-download.zip"
|
|
artifact_name: "artifact-v4-download"
|
|
status: 2
|
|
created_unix: 1730330775
|
|
updated_unix: 1730330775
|
|
expired_unix: 1738106775
|
|
|
|
-
|
|
id: 23
|
|
run_id: 793
|
|
runner_id: 1
|
|
repo_id: 2
|
|
owner_id: 2
|
|
commit_sha: c2d72f548424103f01ee1dc02889c1e2bff816b0
|
|
storage_path: "27/5/1730330775594233150.chunk"
|
|
file_size: 1024
|
|
file_compressed_size: 1024
|
|
content_encoding: "application/zip"
|
|
artifact_path: "artifact-v4-download.zip"
|
|
artifact_name: "artifact-v4-download"
|
|
status: 2
|
|
created_unix: 1730330775
|
|
updated_unix: 1730330775
|
|
expired_unix: 1738106775
|