mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +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
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
# This workflow pushes to the gh-pages branch, so the token needs write
|
||||
# privileges for repo contents.
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
name: Build documentation
|
||||
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:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -7,6 +7,9 @@ on:
|
||||
paths:
|
||||
- 'configure.ac'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
ci-release-build:
|
||||
name: "Sanity check release commits"
|
||||
|
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
@ -1,11 +1,15 @@
|
||||
---
|
||||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
ACTIONS_LINTS_TOOLCHAIN: 1.53.0
|
||||
|
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -1,11 +1,15 @@
|
||||
---
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
# Distro configuration matrix
|
||||
|
Loading…
Reference in New Issue
Block a user