-
Notifications
You must be signed in to change notification settings - Fork 3
File operations (hash, archive) #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: gomod | ||
| directory: / | ||
| schedule: | ||
| interval: weekly | ||
| open-pull-requests-limit: 10 | ||
| groups: | ||
| # The archive decoders parse untrusted user-uploaded bytes; keep them | ||
| # together so a security bump lands as one reviewable change. Groups | ||
| # cover version updates only unless applies-to says otherwise, so the | ||
| # security updates these exist for need their own entry. | ||
| archive-decoders: | ||
| patterns: | ||
| - github.com/bodgit/* | ||
| - github.com/nwaples/rardecode/* | ||
| - github.com/dsnet/compress | ||
| - github.com/ulikunitz/xz | ||
| - github.com/klauspost/compress | ||
| archive-decoders-security: | ||
| applies-to: security-updates | ||
| patterns: | ||
| - github.com/bodgit/* | ||
| - github.com/nwaples/rardecode/* | ||
| - github.com/dsnet/compress | ||
| - github.com/ulikunitz/xz | ||
| - github.com/klauspost/compress | ||
| aws: | ||
| patterns: | ||
| - github.com/aws/* | ||
| otel: | ||
| patterns: | ||
| - go.opentelemetry.io/* | ||
|
|
||
| - package-ecosystem: github-actions | ||
| directory: / | ||
| schedule: | ||
| interval: monthly | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,18 +14,29 @@ jobs: | |
| os: [ubuntu-latest] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v5 | ||
|
Comment on lines
+17
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/usr/bin/env bash
set -euo pipefail
rg -n -C 3 'actions/checkout@|persist-credentials|repo-checkout' .github/workflows/test.yml
curl -fsSL \
https://raw.githubusercontent.com/golang/govulncheck-action/v1/action.yml |
rg -n -C 3 'repo-checkout|actions/checkout|persist-credentials'Repository: gameap/daemon Length of output: 1103 🏁 Script executed: #!/usr/bin/env bash
set -euo pipefail
printf '%s\n' '--- workflow ---'
cat -n .github/workflows/test.yml
printf '%s\n' '--- all checkout-related configuration in workflows ---'
rg -n -C 4 'uses:\s*([^ ]*/)?actions/checkout@|persist-credentials|repo-checkout|permissions:' .github/workflowsRepository: gameap/daemon Length of output: 4816 Disable GitHub credential persistence for all checkouts used by this workflow. Set 🧰 Tools🪛 zizmor (1.28.0)[warning] 17-18: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) 📍 Affects 1 file
🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||
| with: | ||
| # Nothing here pushes back, so the job has no use for the token | ||
| # checkout would otherwise leave in .git/config for every later step. | ||
| persist-credentials: false | ||
|
|
||
| - name: Install Go | ||
| uses: actions/setup-go@v2 | ||
| uses: actions/setup-go@v6 | ||
| with: | ||
| stable: false | ||
| go-version: ${{ matrix.go-version }} | ||
|
|
||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Set up dependencies | ||
| run: go mod download | ||
|
|
||
| - name: Run govulncheck | ||
| uses: golang/govulncheck-action@v1 | ||
| with: | ||
| go-version-input: ${{ matrix.go-version }} | ||
| # The code is already checked out above; the action's own checkout | ||
| # would only redo it and re-persist the credentials. | ||
| repo-checkout: false | ||
|
|
||
| - name: Run golangci-lint | ||
| uses: golangci/golangci-lint-action@v8 | ||
| with: | ||
|
|
@@ -53,13 +64,16 @@ jobs: | |
| test-cache: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Install Go | ||
| uses: actions/setup-go@v2 | ||
| uses: actions/setup-go@v6 | ||
| with: | ||
| go-version: 1.26.x | ||
|
|
||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
| - uses: actions/cache@v4 | ||
| with: | ||
| # In order: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: gameap/daemon
Length of output: 3435
🏁 Script executed (no clone):
Length of output: 50344
🏁 Script executed (no clone):
Length of output: 30166
Configure the archive group for security updates.
The group applies only to version updates because
applies-tois omitted. Add a separate group withapplies-to: security-updatesand the same patterns.🤖 Prompt for AI Agents