Skip to content

Commit

Permalink
fix: set ci permissions as read-all
Browse files Browse the repository at this point in the history
  • Loading branch information
flyfishzy committed Mar 28, 2022
1 parent 9e9c792 commit 6cc86b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

# Declare default permissions as read only.
permissions: read-all

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
schedule:
- cron: '23 14 * * 4'

# Declare default permissions as read only.
permissions: read-all

jobs:
analyze:
name: Analyze
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

# Declare default permissions as read only.
permissions: read-all

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

0 comments on commit 6cc86b4

Please sign in to comment.