mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-05 15:41:23 +03:00
drm: bound the GITHUB_TOKEN in the drm workflow
CodeQL flagged the new workflow for not declaring permissions, which is fair: every job here only checks out, builds and tests, and the artifact up/download in the deb job authenticates with the runtime token rather than this one, so contents: read is the whole requirement. Declared at the workflow level so the reusable bridge workflow it calls inherits the same bound. The stock workflows do not declare it either, but they are upstream's and this feature does not touch them; a new file can start out right.
This commit is contained in:
6
.github/workflows/drm-capture.yml
vendored
6
.github/workflows/drm-capture.yml
vendored
@@ -1,5 +1,11 @@
|
||||
name: DRM capture (opt-in drm feature)
|
||||
|
||||
# Least-privilege GITHUB_TOKEN. Every job here only checks out, builds and tests; the artifact
|
||||
# up/download used by the deb job authenticates with the runtime token, not this one. Declared at
|
||||
# the workflow level so the reusable bridge workflow called below inherits the same bound.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# Everything CI-side about the opt-in `drm` backend lives here, so the stock CI and release workflows
|
||||
# stay byte-identical to a build with the feature off. Nothing in this file runs unless a drm-related
|
||||
# path changes (or someone dispatches it by hand), so a PR that does not touch the backend pays nothing.
|
||||
|
||||
Reference in New Issue
Block a user