Skip to content

Commit

Permalink
Merge pull request #8730 from wmontwe/fix-gh-action-token-permissions
Browse files Browse the repository at this point in the history
Fix GH Action token permissions
  • Loading branch information
coreycb authored Jan 10, 2025
2 parents 32a9866 + ebbcb08 commit 59e9e6c
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- 'LICENSE'
- 'NOTICE'

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- cron: '0 10 * * 1'
workflow_dispatch:

permissions:
contents: read

jobs:
codeql-scan:

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/daily_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
schedule:
- cron: '8 20 * * *'

permissions:
contents: read

jobs:
trigger_daily_build:
if: ${{ github.repository_owner == 'thunderbird' }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/fluidscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
- cron: '0 10 * * 1'
workflow_dispatch:

permissions:
contents: read

jobs:
fluidattacks-scan:

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gradle-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
- 'LICENSE'
- 'NOTICE'

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- '**.md'
- '.github/workflows/markdown.yml'

permissions:
contents: read

jobs:
markdown_quality:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/needinfo-remove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
types:
- created

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/needinfo-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- cron: "0 0 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
branches: [ "main" ]
workflow_dispatch:

permissions:
contents: read

jobs:
analysis:
name: Scorecard analysis
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/shippable_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ on:
type: boolean
description: Upload to FTP stage instead of prod

permissions:
contents: read

jobs:
get_environment:
name: Determine Release Environment
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/uplift-merges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
description: Dry run
default: true

permissions:
contents: read

jobs:
uplift:
name: Uplift
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/validate-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
pull_request:

permissions:
contents: read

jobs:
validate-gradle:
name: "validate-gradle"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/validate-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
description: Debug mode
default: false

permissions:
contents: read

jobs:
validate-workflows:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 59e9e6c

Please sign in to comment.