mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-23 05:53:09 +00:00
CI: Add permissions
to GitHub Actions
This change locks down the permissions of the access token in GitHub Actions to only allow reading the repository contents and nothing else. see https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
This commit is contained in:
parent
c5aa113d80
commit
89c9d0a169
3
.github/workflows/codespell.yml
vendored
3
.github/workflows/codespell.yml
vendored
@ -4,6 +4,9 @@ on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 2"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
codespell:
|
||||
|
||||
|
3
.github/workflows/compliance.yml
vendored
3
.github/workflows/compliance.yml
vendored
@ -5,6 +5,9 @@ on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 3"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
h2spec:
|
||||
name: h2spec
|
||||
|
3
.github/workflows/contrib.yml
vendored
3
.github/workflows/contrib.yml
vendored
@ -3,6 +3,9 @@ name: Contrib
|
||||
on:
|
||||
push:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
|
3
.github/workflows/coverity.yml
vendored
3
.github/workflows/coverity.yml
vendored
@ -9,6 +9,9 @@ on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
scan:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
.github/workflows/musl.yml
vendored
3
.github/workflows/musl.yml
vendored
@ -2,6 +2,9 @@ name: alpine/musl
|
||||
|
||||
on: [push]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
musl:
|
||||
name: gcc
|
||||
|
3
.github/workflows/openssl-nodeprecated.yml
vendored
3
.github/workflows/openssl-nodeprecated.yml
vendored
@ -14,6 +14,9 @@ on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 4"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
||||
|
3
.github/workflows/vtest.yml
vendored
3
.github/workflows/vtest.yml
vendored
@ -11,6 +11,9 @@ name: VTest
|
||||
on:
|
||||
push:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
# The generate-matrix job generates the build matrix using JSON output
|
||||
# generated by .github/matrix.py.
|
||||
|
3
.github/workflows/windows.yml
vendored
3
.github/workflows/windows.yml
vendored
@ -11,6 +11,9 @@ name: Windows
|
||||
on:
|
||||
push:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
msys2:
|
||||
name: ${{ matrix.name }}
|
||||
|
Loading…
Reference in New Issue
Block a user