Skip to content

Commit

Permalink
Merge pull request #1864 from sustainable-computing-io/ghapermissions
Browse files Browse the repository at this point in the history
[fix]: update gha permission settings
  • Loading branch information
vprashar2929 authored Nov 28, 2024
2 parents c8ed7eb + 2ddabe2 commit abe3eb9
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/commitMsg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Commit Message Check
on: # yamllint disable-line rule:truthy
pull_request:

permissions: read-all

jobs:
check-commit-message:
name: Check Commit Message
Expand All @@ -12,5 +14,3 @@ jobs:

- name: Check commit message
uses: webiny/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on: # yamllint disable-line rule:truthy
schedule:
- cron: 12 9 * * *

permissions: read-all

jobs:
# daily go security
gosec:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/developer_local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: local dev env validation
on: # yamllint disable-line rule:truthy
workflow_call:

permissions: read-all

jobs:
local_env:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ name: Security Scan
on: # yamllint disable-line rule:truthy
workflow_call:

permissions:
pull-requests: read

jobs:
tests:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pre-commit-auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on: # yamllint disable-line rule:truthy
schedule:
- cron: 0 0 1 * *

permissions: read-all

jobs:
auto-update:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on: # yamllint disable-line rule:truthy

permissions:
pull-requests: write
contents: write
contents: read
repository-projects: write
packages: write

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: yamllint
on: # yamllint disable-line rule:truthy
workflow_call:

permissions: read-all

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

0 comments on commit abe3eb9

Please sign in to comment.