Skip to content

Commit

Permalink
Set toplevel github token permissions to read (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsavoire authored Oct 18, 2024
1 parent 52d9d68 commit 21c4890
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ on:
required: true
type: string
description: "Profiler version to use for the build"


permissions: read-all

jobs:
lint:
name: Lint
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
schedule:
- cron: '34 1 * * 0'

permissions: read-all

jobs:
analyze:
name: Analyze (Go)
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
- cron: '00 00 * * *'
workflow_dispatch:

permissions: read-all

jobs:
govulncheck-tests:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ossf-scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
push:
branches: [ "main" ]

permissions: read-all

jobs:
analysis:
name: Scorecard analysis
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
types: [opened, synchronize, reopened, labeled]
branches: ["**"]

permissions: read-all

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
tags:
- 'v*'

permissions: read-all

jobs:
versions:
name: Determine versions
Expand Down

0 comments on commit 21c4890

Please sign in to comment.