Skip to content

Commit

Permalink
Merge pull request #1239 from wlemkows/openssf-permissions
Browse files Browse the repository at this point in the history
[Security] add permissions to workflows
  • Loading branch information
pbalcer authored Jan 10, 2024
2 parents 1ee242c + 929c978 commit 8bb539c
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
linux:
name: Bandit
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
ubuntu-build:
name: Build - Ubuntu
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
analyze-ubuntu:
name: Analyze on Ubuntu
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Coverage

on: [push, pull_request]

permissions:
contents: read

jobs:
ubuntu-build:
name: Build - Ubuntu
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ env:
COVERITY_SCAN_BRANCH_PATTERN: "main"
TRAVIS_BRANCH: ${{ github.ref_name }}

permissions:
contents: read

jobs:
linux:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
# Run every day at 23:00 UTC
- cron: '0 23 * * *'

permissions:
contents: read

jobs:
e2e-build-hw:
name: Build SYCL, UR, run E2E
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
# Run every day at 23:00 UTC
- cron: '0 23 * * *'

permissions:
contents: read

jobs:
long-fuzz-test:
name: Run long fuzz tests
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
# At 23:00 on Friday, GitHub actions schedule is in UTC time.
- cron: 0 23 * * 5

permissions:
contents: read

jobs:
weekly-prerelease:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8bb539c

Please sign in to comment.