Skip to content

Commit

Permalink
chore: update top level workflow permissions (#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Jan 13, 2024
1 parent 9c39b0b commit a57f4dc
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/codacy-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ on:
schedule:
- cron: '44 20 * * 0'

permissions:
actions: read
contents: read
security-events: write

jobs:
analyze:
name: Analyze
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/issue-comment-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Issue Comment Test

permissions:
contents: read

on:
issue_comment:

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/manual-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Manual Test

permissions:
contents: read

on:
workflow_dispatch:

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/matrix-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Matrix Test

permissions:
contents: read

on:
workflow_dispatch:
pull_request:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/multi-job-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Multi Job Test

permissions:
contents: read

on:
push:
branches:
Expand All @@ -8,9 +11,6 @@ on:
branches:
- "**"

permissions:
contents: read

jobs:
changed-files:
name: Get changed files
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/sync-release-version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: Update release version.
name: Update release version

permissions:
contents: read
pull-requests: write

on:
release:
types: [published]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: CI

permissions:
contents: read
pull-requests: write

on:
push:
branches:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Format README.md

permissions:
contents: read
pull-requests: write

on:
push:
branches:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/workflow-run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
workflows: [Matrix Test]
types: [completed]

permissions:
contents: read

jobs:
on-success:
runs-on: ubuntu-latest
Expand Down

0 comments on commit a57f4dc

Please sign in to comment.