mirror of
https://github.com/ivuorinen/base-configs-markdownlint.git
synced 2026-03-03 05:54:38 +00:00
fix(ci): use GITHUB_TOKEN for semantic-release and harden workflow permissions
Replace secrets.PAT with secrets.GITHUB_TOKEN in publish.yml so semantic-release can comment on PRs/issues using the built-in token scoped by job-level permissions. Set top-level permissions to empty object across all workflows to follow the principle of least privilege, relying on job-level permissions blocks instead.
This commit is contained in:
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
@@ -21,6 +21,8 @@ on:
|
||||
schedule:
|
||||
- cron: "22 8 * * 0"
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze (${{ matrix.language }})
|
||||
|
||||
Reference in New Issue
Block a user