mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
ci: scope GitHub Actions workflows (#36890)
* Scope GitHub Actions workflow and job permissions * Fix workflow permissions gaps from least-privilege scoping
This commit is contained in:
@@ -7,12 +7,12 @@ on:
|
||||
schedule:
|
||||
- cron: "30 5,17 * * *"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write # for github/codeql-action/autobuild to send a status report
|
||||
name: Analyze
|
||||
if: github.repository_owner == 'mattermost'
|
||||
|
||||
Reference in New Issue
Block a user