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

ci: define minimal permissions to GitHub workflows #1295

Merged
merged 1 commit into from Jun 19, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -20,6 +20,10 @@ on:
schedule:
- cron: '31 21 * * 6'

# Minimal permissions to be inherited by any job that don't declare it's own permissions
permissions:
contents: read

jobs:
analyze:
name: Analyze
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/go.yml
Expand Up @@ -7,6 +7,10 @@ on:
- main
- 'release-*'

# Minimal permissions to be inherited by any job that don't declare it's own permissions
permissions:
contents: read

jobs:
test:
name: Tests
Expand Down Expand Up @@ -39,4 +43,4 @@ jobs:

- name: Run style and unused
if: ${{ matrix.go_version == '1.20' }}
run: make style unused
run: make style unused