mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-13 14:55:28 -05:00
Restrict GITHUB_TOKEN permissions to contents: read
The workflow only reads the repository to lint and bundle the OpenAPI specification. Following the principle of least privilege also silences the CodeQL missing-workflow-permissions advisory raised on the initial revision of this PR.
This commit is contained in:
4
.github/workflows/openapi.yml
vendored
4
.github/workflows/openapi.yml
vendored
@@ -1,4 +1,8 @@
|
||||
name: OpenAPI
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
merge_group:
|
||||
push:
|
||||
|
||||
Reference in New Issue
Block a user