Skip to content

Commit c0afe1b

Browse files
authored
Complete CI permissions limiting (#4394)
This is a follow-up to #4348 to address the remaining code scanning alerts. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
1 parent c301120 commit c0afe1b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/deny.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# 2. Checks Rust-Sec registry for security advisories.
66

77
name: Cargo Deny
8+
permissions:
9+
contents: read
810
on:
911
pull_request:
1012
merge_group:

.github/workflows/kani.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ env:
1616
jobs:
1717
regression:
1818
runs-on: ${{ matrix.os }}
19+
permissions:
20+
contents: read
1921
strategy:
2022
matrix:
2123
os: [macos-13, ubuntu-22.04, ubuntu-24.04, macos-14, ubuntu-24.04-arm]
@@ -33,6 +35,8 @@ jobs:
3335

3436
benchcomp-tests:
3537
runs-on: ubuntu-24.04
38+
permissions:
39+
contents: read
3640
steps:
3741
- name: Checkout Kani
3842
uses: actions/checkout@v5
@@ -56,6 +60,8 @@ jobs:
5660

5761
perf:
5862
runs-on: ubuntu-24.04
63+
permissions:
64+
contents: read
5965
steps:
6066
- name: Checkout Kani
6167
uses: actions/checkout@v5
@@ -72,6 +78,8 @@ jobs:
7278

7379
llbc-regression:
7480
runs-on: ubuntu-24.04
81+
permissions:
82+
contents: read
7583
steps:
7684
- name: Checkout Kani
7785
uses: actions/checkout@v5

0 commit comments

Comments
 (0)