Skip to content

Commit

Permalink
chore(ci): Another finetune of workflow security (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtema authored Apr 29, 2024
1 parent b67b712 commit f2d1296
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Security audit

permissions: read-all
permissions:
contents: read

on:
schedule:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/rust.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Rust
name: CI

permissions:
contents: read

on:
push:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/functional.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
name: Functional

permissions: read-all
permissions:
contents: read

on:
pull_request:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
name: Linters

permissions: read-all
permissions:
contents: read

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Release-plz

permissions: read-all
permissions: {}

on:
push:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ on:
branches: [ "main" ]

# Declare default permissions as read only.
permissions: read-all
permissions:
contents: read

jobs:
analysis:
Expand Down

0 comments on commit f2d1296

Please sign in to comment.