Skip to content

Commit

Permalink
ci: apply zizmor recommendations (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
chgl authored Dec 31, 2024
1 parent 7708bde commit 6fab7f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
pull_request:
branches: [master]

permissions: read-all
permissions:
contents: read

jobs:
build:
Expand Down Expand Up @@ -69,6 +70,8 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Download image
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/daily-trivy-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
- cron: "0 8 * * *"

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

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

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

jobs:
analysis:
Expand Down

0 comments on commit 6fab7f2

Please sign in to comment.