chore: update top level workflow permissions (#1848)
This commit is contained in:
parent
9c39b0b6e9
commit
a57f4dcc81
5
.github/workflows/codacy-analysis.yml
vendored
5
.github/workflows/codacy-analysis.yml
vendored
@ -17,6 +17,11 @@ on:
|
||||
schedule:
|
||||
- cron: '15 16 * * 2'
|
||||
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
jobs:
|
||||
codacy-security-scan:
|
||||
# Cancel other workflows that are running for the same branch
|
||||
|
5
.github/workflows/codeql.yml
vendored
5
.github/workflows/codeql.yml
vendored
@ -20,6 +20,11 @@ on:
|
||||
schedule:
|
||||
- cron: '44 20 * * 0'
|
||||
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
|
4
.github/workflows/issue-comment-test.yml
vendored
4
.github/workflows/issue-comment-test.yml
vendored
@ -1,4 +1,8 @@
|
||||
name: Issue Comment Test
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
|
||||
|
3
.github/workflows/manual-test.yml
vendored
3
.github/workflows/manual-test.yml
vendored
@ -1,5 +1,8 @@
|
||||
name: Manual Test
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
|
3
.github/workflows/matrix-test.yml
vendored
3
.github/workflows/matrix-test.yml
vendored
@ -1,5 +1,8 @@
|
||||
name: Matrix Test
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
|
6
.github/workflows/multi-job-test.yml
vendored
6
.github/workflows/multi-job-test.yml
vendored
@ -1,5 +1,8 @@
|
||||
name: Multi Job Test
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@ -8,9 +11,6 @@ on:
|
||||
branches:
|
||||
- "**"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
changed-files:
|
||||
name: Get changed files
|
||||
|
7
.github/workflows/sync-release-version.yml
vendored
7
.github/workflows/sync-release-version.yml
vendored
@ -1,4 +1,9 @@
|
||||
name: Update release version.
|
||||
name: Update release version
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -1,5 +1,9 @@
|
||||
name: CI
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
4
.github/workflows/update-readme.yml
vendored
4
.github/workflows/update-readme.yml
vendored
@ -1,5 +1,9 @@
|
||||
name: Format README.md
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
3
.github/workflows/workflow-run-test.yml
vendored
3
.github/workflows/workflow-run-test.yml
vendored
@ -4,6 +4,9 @@ on:
|
||||
workflows: [Matrix Test]
|
||||
types: [completed]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
on-success:
|
||||
runs-on: ubuntu-latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user