Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix]: update gha permission settings #1864

Merged
merged 2 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading