Skip to content

Commit

Permalink
chore: update permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Nov 28, 2024
1 parent c13f4d4 commit 75eadf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions tests/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ fn generate() {
let flags = RustFlags::deny("warnings");

let build = Job::new("Build and Test")
.permissions(Permissions::default().contents(Level::Read))
.add_step(Step::checkout())
.add_step(
Toolchain::default()
Expand Down

0 comments on commit 75eadf5

Please sign in to comment.