mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-04-18 20:22:48 +02: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
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…
x
Reference in New Issue
Block a user