mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
CI: Consistently add a top-level permissions definition to GHA workflows
This makes it easy to verify the permissions and to apply them to all jobs within a given workflow.
This commit is contained in:
parent
991d5dabe0
commit
a4737cca08
6 changed files with 16 additions and 8 deletions
3
.github/workflows/aws-lc-fips.yml
vendored
3
.github/workflows/aws-lc-fips.yml
vendored
|
|
@ -5,6 +5,9 @@ on:
|
|||
- cron: "0 0 * * 4"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
uses: ./.github/workflows/aws-lc-template.yml
|
||||
|
|
|
|||
3
.github/workflows/aws-lc.yml
vendored
3
.github/workflows/aws-lc.yml
vendored
|
|
@ -5,6 +5,9 @@ on:
|
|||
- cron: "0 0 * * 4"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
uses: ./.github/workflows/aws-lc-template.yml
|
||||
|
|
|
|||
5
.github/workflows/illumos.yml
vendored
5
.github/workflows/illumos.yml
vendored
|
|
@ -5,12 +5,13 @@ on:
|
|||
- cron: "0 0 25 * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
gcc:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository_owner == 'haproxy' || github.event_name == 'workflow_dispatch' }}
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: "Checkout repository"
|
||||
uses: actions/checkout@v5
|
||||
|
|
|
|||
5
.github/workflows/netbsd.yml
vendored
5
.github/workflows/netbsd.yml
vendored
|
|
@ -5,12 +5,13 @@ on:
|
|||
- cron: "0 0 25 * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
gcc:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository_owner == 'haproxy' || github.event_name == 'workflow_dispatch' }}
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: "Checkout repository"
|
||||
uses: actions/checkout@v5
|
||||
|
|
|
|||
4
.github/workflows/quic-interop-aws-lc.yml
vendored
4
.github/workflows/quic-interop-aws-lc.yml
vendored
|
|
@ -9,13 +9,13 @@ on:
|
|||
schedule:
|
||||
- cron: "0 0 * * 2"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
combined-build-and-run:
|
||||
runs-on: ubuntu-24.04
|
||||
if: ${{ github.repository_owner == 'haproxy' || github.event_name == 'workflow_dispatch' }}
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
|
|
|||
4
.github/workflows/quic-interop-libressl.yml
vendored
4
.github/workflows/quic-interop-libressl.yml
vendored
|
|
@ -9,13 +9,13 @@ on:
|
|||
schedule:
|
||||
- cron: "0 0 * * 2"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
combined-build-and-run:
|
||||
runs-on: ubuntu-24.04
|
||||
if: ${{ github.repository_owner == 'haproxy' || github.event_name == 'workflow_dispatch' }}
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
|
|
|||
Loading…
Reference in a new issue