Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@v6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '--- workflow refs ---\n'
for f in .github/workflows/ci.yml .github/workflows/codeql.yml .github/workflows/release.yml; do
  echo "FILE: $f"
  nl -ba "$f" | sed -n '1,120p'
  echo
done

printf '--- pinning policy / references ---\n'
rg -n --hidden -S "unpinned-uses|pin|actions/setup-dotnet|uses: .*@" .github README.md docs . || true

Repository: testingbot/testingbot-dotnet

Length of output: 257


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
import os, re, json, pathlib
for path in [".github/workflows/ci.yml", ".github/workflows/codeql.yml", ".github/workflows/release.yml"]:
    print(path)
    text = pathlib.Path(path).read_text()
    for m in re.finditer(r'uses:\s*([^\s]+)', text):
        print(" ", m.group(1))
    print()
PY

Repository: testingbot/testingbot-dotnet

Length of output: 537


Pin actions/setup-dotnet to a commit SHA in all three workflows.

.github/workflows/ci.yml, .github/workflows/codeql.yml, and .github/workflows/release.yml still reference the mutable actions/setup-dotnet@v6 tag. Replace each with a full commit SHA to match the repo’s action-pinning policy.

🧰 Tools
🪛 zizmor (1.26.1)

[error] 22-22: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

📍 Affects 3 files
  • .github/workflows/ci.yml#L22-L22 (this comment)
  • .github/workflows/codeql.yml#L23-L23
  • .github/workflows/release.yml#L22-L22
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ci.yml at line 22, Replace the mutable
actions/setup-dotnet@v6 reference with the approved full commit SHA in
.github/workflows/ci.yml (line 22), .github/workflows/codeql.yml (line 23), and
.github/workflows/release.yml (line 22), preserving the existing setup-dotnet
configuration in each workflow.

Source: Linters/SAST tools

with:
dotnet-version: |
8.0.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@v6
with:
dotnet-version: |
8.0.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@v6
with:
dotnet-version: |
8.0.x
Expand Down
Loading