Skip to content

Commit d264651

Browse files
flavorjonesclaude
andcommitted
Fix medium-severity zizmor findings: permissions, artipacked, dependabot-cooldown
- Set permissions: {} at workflow level and scope per job - Add persist-credentials: false to tests checkout - Add default-days to bundler cooldown in dependabot.yml Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 17b8151 commit d264651

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ updates:
1717
schedule:
1818
interval: weekly
1919
cooldown:
20+
default-days: 3
2021
semver-major-days: 7
2122
semver-minor-days: 3
2223
semver-patch-days: 2

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: CI
22
on: [push, pull_request]
3+
permissions: {}
34
jobs:
45
lint-actions:
56
name: GitHub Actions audit
67
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
710

811
steps:
912
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -20,6 +23,8 @@ jobs:
2023

2124
tests:
2225
name: Ruby ${{ matrix.ruby }}, ${{ matrix.rails }}
26+
permissions:
27+
contents: read
2328
strategy:
2429
fail-fast: false
2530
matrix:
@@ -32,6 +37,8 @@ jobs:
3237

3338
steps:
3439
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
40+
with:
41+
persist-credentials: false
3542
- name: Set up Ruby
3643
uses: ruby/setup-ruby@319994f95fa847cf3fb3cd3dbe89f6dcde9f178f # v1.295.0
3744
with:

0 commit comments

Comments
 (0)