mirror of
https://github.com/zed-industries/zed.git
synced 2026-07-09 16:00:35 +00:00
ci: Fix insufficient permissions for asset validation step (#60625)
Release Notes: - N/A
This commit is contained in:
parent
8f907c5ee1
commit
9b4598f708
2 changed files with 10 additions and 3 deletions
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -760,6 +760,8 @@ jobs:
|
|||
needs:
|
||||
- upload_release_assets
|
||||
runs-on: namespace-profile-2x4-ubuntu-2404
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: release::validate_release_assets
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -356,9 +356,14 @@ fn validate_release_assets(deps: &[&NamedJob]) -> NamedJob {
|
|||
};
|
||||
|
||||
named::job(
|
||||
dependant_job(deps).runs_on(runners::LINUX_SMALL).add_step(
|
||||
named::bash(&validation_script).add_env(("GITHUB_TOKEN", vars::GITHUB_TOKEN)),
|
||||
),
|
||||
dependant_job(deps)
|
||||
.runs_on(runners::LINUX_SMALL)
|
||||
// The release is still a draft at this point, and draft releases are
|
||||
// only visible to tokens with write access to repository contents.
|
||||
.permissions(Permissions::default().contents(Level::Write))
|
||||
.add_step(
|
||||
named::bash(&validation_script).add_env(("GITHUB_TOKEN", vars::GITHUB_TOKEN)),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue