mirror of
https://github.com/docker/compose.git
synced 2025-07-22 05:04:27 +02:00
ci: limit job permissions from default (#9874)
Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
parent
19a1454c2d
commit
f44ca01fcf
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -22,6 +22,9 @@ env:
|
|||||||
DESTDIR: "./bin"
|
DESTDIR: "./bin"
|
||||||
DOCKER_CLI_VERSION: "20.10.17"
|
DOCKER_CLI_VERSION: "20.10.17"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -182,6 +185,9 @@ jobs:
|
|||||||
make e2e-compose-standalone
|
make e2e-compose-standalone
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
permissions:
|
||||||
|
contents: write # to create a release (ncipollo/release-action)
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- binary
|
- binary
|
||||||
|
5
.github/workflows/docs.yml
vendored
5
.github/workflows/docs.yml
vendored
@ -4,8 +4,13 @@ on:
|
|||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
jobs:
|
jobs:
|
||||||
open-pr:
|
open-pr:
|
||||||
|
permissions:
|
||||||
|
contents: write # to create branch (peter-evans/create-pull-request)
|
||||||
|
pull-requests: write # to create a PR (peter-evans/create-pull-request)
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
|
3
.github/workflows/merge.yml
vendored
3
.github/workflows/merge.yml
vendored
@ -12,6 +12,9 @@ on:
|
|||||||
- 'v*'
|
- 'v*'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2e:
|
e2e:
|
||||||
name: Build and test
|
name: Build and test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user