Skip to content
Open
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
17 changes: 17 additions & 0 deletions .github/workflows/trustabl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Trustabl
on:
push:
branches: [master]
pull_request:

permissions:
contents: read
security-events: write
pull-requests: write

jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: trustabl/trustabl-action@v0
Comment on lines +16 to +17

Copy link
Copy Markdown
Contributor

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

echo "Repository files matching trustabl workflow:"
fd -a 'trustabl\.yml$|trustabl\.ya?ml$' .github || true

echo
echo "Trusting workflow content:"
if [ -f .github/workflows/trustabl.yml ]; then
  cat -n .github/workflows/trustabl.yml
else
  echo ".github/workflows/trustabl.yml not found"
fi

echo
echo "Search for trustabl inputs / permissions / checkout usage:"
rg -n --hidden --glob '!node_modules' --glob '!dist' --glob '!build' \
  "trustabl/trustabl-action|version:|permissions:|scan|checkout@v4|uses:.*trustabl|trusted_publishing|oidc|id-token" .github workflows . 2>/dev/null | head -200

echo
echo "Workflow parser safety snapshot:"
python3 - <<'PY'
from pathlib import Path
p=Path('.github/workflows/trustabl.yml')
print(p.exists())
if p.exists():
    text=p.read_text()
    print(len(text.splitlines()))
    for i,line in enumerate(text.splitlines(),1):
        if 'uses:' in line or 'with:' in line or 'permissions:' in line or 'id-token' in line or 'version:' in line:
            print(f'{i}: {line}')
PY

Repository: ElderEvil/falloutProject

Length of output: 19631


🌐 Web query:

trustabltrustabl-action v0 with version latest input documentation

💡 Result:

Trustabl-action is a GitHub Action designed to run the Trustabl static reliability and safety analyzer for AI agent SDKs (such as Claude, OpenAI, Google ADK, and LangChain) [1][2]. It is the recommended, primary method for integrating Trustabl scans into GitHub Actions workflows [3][4][5]. Regarding the versioning: While some documentation references v0 [2], the current authoritative usage examples in active repositories frequently point to @v1 [6][7]. It is recommended to check the official repository for the most stable tag or branch, as the action is designed to be the single source of truth for GitHub-based CI workflows [3][4]. Key features and documentation details for the action include: - SARIF Integration: It natively supports uploading results to the GitHub Security tab, defaulting to true [3][2]. - Configuration: It accepts various inputs for customization, including sarif-file, json-file, upload-artifact, and github-token [2]. - Workflow: For environments outside GitHub Actions, the underlying Trustabl CLI is used with --format sarif --output to produce reports for other tools [3][5]. For the most up-to-date configuration, refer directly to the trustabl/trustabl-action GitHub repository.

Citations:


🌐 Web query:

actions/checkout releases v4 latest

💡 Result:

As of July 31, 2026, the latest release for the v4 major branch of actions/checkout is v4.4.0, which was published on July 20, 2026 [1]. You can reference this specific release in your GitHub Actions workflow using the tag v4.4.0 (e.g., uses: actions/checkout@v4.4.0) [1]. If you prefer to stay on the latest v4 minor/patch updates automatically, you can use the v4 branch reference (e.g., uses: actions/checkout@v4), which is maintained to point to the latest v4 release [2][3]. Note that the actions/checkout repository has also released major versions beyond v4 (up to v7 as of this date) [4][5].

Citations:


Pin the workflow actions to full-length commit SHAs.

security-events: write and pull-requests: write grant code- and artifact-writing permissions to actions/checkout@v4 and trustabl/trustabl-action@v0. These are mutable tag references, so each job can change to unreviewed code without a workflow diff. Use pinned full-length commit SHAs for both uses entries, or a non-moving released tag only if both repositories support it.

🧰 Tools
🪛 zizmor (1.28.0)

[warning] 16-16: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)

🤖 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/trustabl.yml around lines 16 - 17, Update the workflow
steps using actions/checkout@v4 and trustabl/trustabl-action@v0 to reference
immutable, full-length commit SHAs instead of mutable tags, preserving the
existing actions and permissions.