Skip to content

Commit

Permalink
Revise default permission on workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Oct 20, 2024
1 parent 0da1dc1 commit cce9261
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build

on: [ push, pull_request ]

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

jobs:
run_build:
runs-on: "ubuntu-latest"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ on:
schedule:
- cron: '33 6 * * 2'

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

jobs:
codacy-security-scan:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
schedule:
- cron: '15 14 * * 6'

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

jobs:
analyze:
name: Analyze (${{ matrix.language }})
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Test

on: [ push, pull_request ]

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

env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}

Expand Down

0 comments on commit cce9261

Please sign in to comment.