mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
ci: declare workflow-level contents: read on 7 CI/lint workflows
Rebased onto current main to resolve conflicts. Pins GITHUB_TOKEN to contents: read on workflows that don't write to the GitHub API. Post-CVE-2025-30066 (tj-actions/changed-files) hardening pattern. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
This commit is contained in:
parent
138263a1b4
commit
77f7b53d5e
5 changed files with 15 additions and 0 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
|
@ -6,6 +6,9 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
|
||||
test-ubuntu-latest:
|
||||
|
|
|
|||
3
.github/workflows/coverity.yml
vendored
3
.github/workflows/coverity.yml
vendored
|
|
@ -11,6 +11,9 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
coverity:
|
||||
if: github.repository == 'redis/redis'
|
||||
|
|
|
|||
3
.github/workflows/external.yml
vendored
3
.github/workflows/external.yml
vendored
|
|
@ -10,6 +10,9 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test-external-standalone:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
3
.github/workflows/redis_docs_sync.yaml
vendored
3
.github/workflows/redis_docs_sync.yaml
vendored
|
|
@ -4,6 +4,9 @@ on:
|
|||
release:
|
||||
types: [published]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
redis_docs_sync:
|
||||
if: github.repository == 'redis/redis'
|
||||
|
|
|
|||
3
.github/workflows/reply-schemas-linter.yml
vendored
3
.github/workflows/reply-schemas-linter.yml
vendored
|
|
@ -12,6 +12,9 @@ concurrency:
|
|||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
reply-schemas-linter:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue