forgejo/models
Bo-Yi Wu b62c8e7765
feat(API): update and delete secret for managing organization secrets (#26660)
- Add `UpdateSecret` function to modify org or user repo secret
- Add `DeleteSecret` function to delete secret from an organization
- Add `UpdateSecretOption` struct for updating secret options
- Add `UpdateOrgSecret` function to update a secret in an organization
- Add `DeleteOrgSecret` function to delete a secret in an organization

GitHub API

1. Update Org Secret:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret
2. Delete Org Secret:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#delete-an-organization-secret

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2023-08-24 02:07:00 +00:00
..
actions Add optimistic lock to ActionRun table (#26563) 2023-08-21 14:07:52 +00:00
activities Bypass MariaDB performance bug of the "IN" sub-query, fix incorrect IssueIndex (#26279) 2023-08-07 12:23:59 +02:00
admin
asymkey Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
auth Ignore the trailing slashes when comparing oauth2 redirect_uri (#26597) 2023-08-21 12:15:55 +08:00
avatars
db Fix NuGet search endpoints (#25613) 2023-08-14 02:50:55 +00:00
dbfs
fixtures Allow to archive labels (#26478) 2023-08-14 11:56:14 +02:00
git Add link to job details and tooltip to commit status in repo list in dashboard (#26326) 2023-08-21 15:26:10 +08:00
issues Fix archived unix time when archiving the label (#26681) 2023-08-23 10:12:20 +00:00
migrations Add optimistic lock to ActionRun table (#26563) 2023-08-21 14:07:52 +00:00
organization Remove unused code (#25734) 2023-07-06 21:52:41 +00:00
packages Fix NuGet search endpoints (#25613) 2023-08-14 02:50:55 +00:00
perm
project Refactor project templates (#26448) 2023-08-12 10:30:28 +00:00
pull
repo Fix counting and filtering on the dashboard page for issues (#26657) 2023-08-23 02:29:17 +00:00
secret feat(API): update and delete secret for managing organization secrets (#26660) 2023-08-24 02:07:00 +00:00
shared/types
system
unit
unittest
user Fix API leaking Usermail if not logged in (#25097) 2023-07-31 01:18:38 +00:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate.go Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
migrate_test.go Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
org.go
org_team.go
org_team_test.go
org_test.go
repo.go Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go