-
Notifications
You must be signed in to change notification settings - Fork 0
chore(ci): adopt gitleaks and scorecard workflows #48
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
08434eb
0bc6627
b4a8626
327526a
c5886e1
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,17 @@ | ||
| name: OpenSSF Scorecard | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| schedule: | ||
| - cron: '0 0 * * 0' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| scorecard: | ||
| uses: konradmichalik/reusable-github-actions/.github/workflows/scorecard.yml@main | ||
| permissions: | ||
| contents: read | ||
| security-events: write | ||
| id-token: write | ||
| actions: read | ||
|
Comment on lines
+10
to
+17
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: sed -n '1,80p' .github/workflows/scorecard.ymlRepository: move-elevator/typo3-styleguide Length of output: 503 🌐 Web query:
💡 Result: To secure GitHub Actions reusable workflows, you must address both the reference mechanism (pinning) and the execution context (permissions and secrets). PINNING BEST PRACTICES - Always pin to a full-length (40-character) commit SHA [1][2][3]. Using branch or tag references (e.g., Citations:
Pin this reusable workflow to a full-length commit SHA. 🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| name: Security | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: ~ | ||
|
|
||
| jobs: | ||
| security: | ||
| uses: konradmichalik/reusable-github-actions/.github/workflows/security.yml@main | ||
| permissions: | ||
| contents: read | ||
|
Comment on lines
+9
to
+12
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: [skip_cloning]Repository: move-elevator/typo3-styleguide Length of output: 220 🏁 Script executed: #!/bin/bash
# Inspect the actual reusable "security.yml" workflow to confirm whether it uploads SARIF
# (and thus needs security-events: write) or otherwise requires more than contents: read.
curl -s https://raw.githubusercontent.com/konradmichalik/reusable-github-actions/main/.github/workflows/security.ymlRepository: move-elevator/typo3-styleguide Length of output: 845 Pin the reusable workflow to a commit SHA 🤖 Prompt for AI Agents |
||
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.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: move-elevator/typo3-styleguide
Length of output: 638
🏁 Script executed:
Repository: move-elevator/typo3-styleguide
Length of output: 1466
🏁 Script executed:
Repository: move-elevator/typo3-styleguide
Length of output: 1375
Pin the reusable workflow reference
This job grants
contents: writetokonradmichalik/reusable-github-actions/.github/workflows/release.yml@main, which is mutable. Pin it to a commit SHA before merging.🔒 Suggested fix
🤖 Prompt for AI Agents