Browse Source

GHA CI: use least permission level

`actions: write` is required by Chocobo1/setup-ccache-action.
`pull-requests: write` is required by actions/stale.
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
d2c4b69f47
  1. 2
      .github/workflows/ci_file_health.yaml
  2. 3
      .github/workflows/ci_macos.yaml
  3. 3
      .github/workflows/ci_ubuntu.yaml
  4. 2
      .github/workflows/ci_webui.yaml
  5. 3
      .github/workflows/ci_windows.yaml
  6. 2
      .github/workflows/coverity-scan.yml
  7. 3
      .github/workflows/stale_bot.yaml

2
.github/workflows/ci_file_health.yaml

@ -2,6 +2,8 @@ name: CI - File health
on: [pull_request, push] on: [pull_request, push]
permissions: {}
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.head_ref != '' }} cancel-in-progress: ${{ github.head_ref != '' }}

3
.github/workflows/ci_macos.yaml

@ -2,6 +2,9 @@ name: CI - macOS
on: [pull_request, push] on: [pull_request, push]
permissions:
actions: write
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.head_ref != '' }} cancel-in-progress: ${{ github.head_ref != '' }}

3
.github/workflows/ci_ubuntu.yaml

@ -2,6 +2,9 @@ name: CI - Ubuntu
on: [pull_request, push] on: [pull_request, push]
permissions:
actions: write
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.head_ref != '' }} cancel-in-progress: ${{ github.head_ref != '' }}

2
.github/workflows/ci_webui.yaml

@ -2,6 +2,8 @@ name: CI - WebUI
on: [pull_request, push] on: [pull_request, push]
permissions: {}
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.head_ref != '' }} cancel-in-progress: ${{ github.head_ref != '' }}

3
.github/workflows/ci_windows.yaml

@ -2,6 +2,9 @@ name: CI - Windows
on: [pull_request, push] on: [pull_request, push]
permissions:
actions: write
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.head_ref != '' }} cancel-in-progress: ${{ github.head_ref != '' }}

2
.github/workflows/coverity-scan.yml

@ -5,6 +5,8 @@ on:
- cron: '0 0 1 * *' # Monthly (1st day of month at midnight) - cron: '0 0 1 * *' # Monthly (1st day of month at midnight)
workflow_dispatch: # Mainly for testing. Don't forget the Coverity usage limits. workflow_dispatch: # Mainly for testing. Don't forget the Coverity usage limits.
permissions: {}
jobs: jobs:
coverity_scan: coverity_scan:
name: Scan name: Scan

3
.github/workflows/stale_bot.yaml

@ -4,6 +4,9 @@ on:
schedule: schedule:
- cron: '0 0 * * *' - cron: '0 0 * * *'
permissions:
pull-requests: write
jobs: jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest

Loading…
Cancel
Save