0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-17 16:24:27 +01:00
gitea/cmd
ChristopherHX 2b8cfb557d
Artifacts download api for artifact actions v4 (#33510)
* 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>
2025-02-16 08:32:54 +08:00
..
actions.go
admin_auth_ldap_test.go
admin_auth_ldap.go chore: fix some function names in comment (#32300) 2024-10-22 08:41:05 +08:00
admin_auth_oauth.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 2024-04-21 19:44:03 +00:00
admin_auth_stmp.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 2024-04-21 19:44:03 +00:00
admin_auth.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 2024-04-21 19:44:03 +00:00
admin_regenerate.go
admin_user_change_password.go Add some tests to clarify the "must-change-password" behavior (#30693) 2024-04-27 12:23:37 +00:00
admin_user_create_test.go Add a option "--user-type bot" to admin user create, improve role display (#27885) 2025-02-07 08:41:55 +00:00
admin_user_create.go Add a option "--user-type bot" to admin user create, improve role display (#27885) 2025-02-07 08:41:55 +00:00
admin_user_delete.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 2024-04-21 19:44:03 +00:00
admin_user_generate_access_token.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 2024-04-21 19:44:03 +00:00
admin_user_list.go
admin_user_must_change_password.go
admin_user.go
admin.go
cert.go
cmd.go
docs.go
doctor_convert.go
doctor_test.go
doctor.go
dump_repo.go
dump.go Add --skip-db option to dump command (#30613) 2024-04-21 23:32:12 +02:00
embedded.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 2024-04-21 19:44:03 +00:00
generate.go
hook_test.go
hook.go Make git push options accept short name (#32245) 2024-10-12 05:42:10 +00:00
keys.go
mailer.go
main_test.go Refactor env var related code (#33075) 2025-01-02 11:36:50 +08:00
main.go unset XDG_HOME_CONFIG as gitea manages configuration locations (#33067) 2025-01-02 06:37:35 +08:00
manager_logging.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 2024-04-21 19:44:03 +00:00
manager.go
migrate_storage_test.go
migrate_storage.go Artifacts download api for artifact actions v4 (#33510) 2025-02-16 08:32:54 +08:00
migrate.go Fix "stop time tracking button" on navbar (#33084) 2025-01-03 04:01:05 +08:00
restore_repo.go
serv.go User facing messages for AGit errors (#33012) 2025-01-27 02:33:39 +00:00
web_acme.go Fix ACME panic (#33178) 2025-01-09 23:53:50 +00:00
web_graceful.go
web_https.go
web.go Support performance trace (#32973) 2025-01-21 18:57:07 +00:00