mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-10 05:18:30 +03:00
workflows: limit permissions to reading repo contents
Move the existing docs permissions stanza to the top of the workflow for consistency.
This commit is contained in:
parent
079528971c
commit
d9483f89ad
10
.github/workflows/docs.yml
vendored
10
.github/workflows/docs.yml
vendored
@ -1,19 +1,21 @@
|
|||||||
---
|
---
|
||||||
name: Docs
|
name: Docs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
# This workflow pushes to the gh-pages branch, so the token needs write
|
||||||
|
# privileges for repo contents.
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
name: Build documentation
|
name: Build documentation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
# This job pushes to the gh-pages branch, so the token needs write
|
|
||||||
# privileges for repo contents.
|
|
||||||
contents: write
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -7,6 +7,9 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'configure.ac'
|
- 'configure.ac'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci-release-build:
|
ci-release-build:
|
||||||
name: "Sanity check release commits"
|
name: "Sanity check release commits"
|
||||||
|
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
@ -1,11 +1,15 @@
|
|||||||
---
|
---
|
||||||
name: Rust
|
name: Rust
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
ACTIONS_LINTS_TOOLCHAIN: 1.53.0
|
ACTIONS_LINTS_TOOLCHAIN: 1.53.0
|
||||||
|
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -1,11 +1,15 @@
|
|||||||
---
|
---
|
||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
# Distro configuration matrix
|
# Distro configuration matrix
|
||||||
|
Loading…
Reference in New Issue
Block a user