ci: default workflow tokens to read-only contents (#1218)
This commit is contained in:
parent
103bf239b3
commit
3501f3e646
5 changed files with 15 additions and 0 deletions
3
.github/workflows/auto-label-pr.yml
vendored
3
.github/workflows/auto-label-pr.yml
vendored
|
|
@ -3,6 +3,9 @@ on:
|
||||||
# Runs workflow when activity on a PR in the workflow's repository occurs.
|
# Runs workflow when activity on a PR in the workflow's repository occurs.
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-label:
|
auto-label:
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
||||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
|
@ -12,6 +12,9 @@ env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
ARTIFACT_DIR: release-artifacts
|
ARTIFACT_DIR: release-artifacts
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
commit-lint:
|
commit-lint:
|
||||||
name: Lint Commit Messages
|
name: Lint Commit Messages
|
||||||
|
|
|
||||||
3
.github/workflows/codeql.yml
vendored
3
.github/workflows/codeql.yml
vendored
|
|
@ -8,6 +8,9 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 1' # Weekly on Monday
|
- cron: '0 0 * * 1' # Weekly on Monday
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
|
|
|
||||||
3
.github/workflows/conformance.yml
vendored
3
.github/workflows/conformance.yml
vendored
|
|
@ -14,6 +14,9 @@ concurrency:
|
||||||
env:
|
env:
|
||||||
CONFORMANCE_VERSION: "0.2.0-alpha.10"
|
CONFORMANCE_VERSION: "0.2.0-alpha.10"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
server:
|
server:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
3
.github/workflows/stale.yml
vendored
3
.github/workflows/stale.yml
vendored
|
|
@ -4,6 +4,9 @@ on:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
name: Clean Up
|
name: Clean Up
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue