Repository navigation
ci: use the shared codestyle workflow #33
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 |
|---|---|---|
| @@ -1,19 +1,10 @@ | ||
| name: Codestyle Checks | ||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| branches: | ||
| - 'master' | ||
| pull_request: | ||
| branches: [ master ] | ||
|
|
||
| jobs: | ||
| check-codestyle: | ||
| strategy: | ||
| fail-fast: false | ||
|
|
||
| runs-on: ubuntu-latest | ||
| name: Check Codestyling | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|
|
||
| - name: Check Codestyling | ||
| run: source ./apps/ci/ci-codestyle.sh | ||
| codestyle: | ||
| uses: azerothcore/reusable-workflows/.github/workflows/codestyle_modules.yml@main | ||
|
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 | 🛡️ Analyzed with Security Review | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- target workflow ---'
cat -n .github/workflows/core_codestyle.yml
printf '%s\n' '--- nearby workflow guidance files ---'
find .github -maxdepth 2 -type f \\( -iname 'README*' -o -iname '*workflow*' -o -iname '*security*' \\) -print | sortRepository: azerothcore/mod-morphsummon Length of output: 651 Security Misconfiguration Reachability: External Pin the reusable workflow to an immutable commit.
🧰 Tools🪛 zizmor (1.30.0)[warning] 9-11: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) 🤖 Prompt for AI Agents |
||
This file was deleted.
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 | 🛡️ Analyzed with Security Review | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: azerothcore/mod-morphsummon
Length of output: 1868
🏁 Script executed:
Repository: azerothcore/mod-morphsummon
Length of output: 1540
Security Misconfiguration
Reachability: Internal
Exploitability: Difficult
CWE: CWE-250
Set the reusable workflow job to
contents: read.codestyle_modules.ymlchecks out code and runs read-onlygrepchecks. It does not need write permissions. Without job-level permissions, the called workflow inherits repository defaults, which can grant it more token access than required.Suggested change
jobs: codestyle: uses: azerothcore/reusable-workflows/.github/workflows/codestyle_modules.yml@main + permissions: + contents: read🧰 Tools
🪛 zizmor (1.30.0)
[warning] 9-11: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block
(excessive-permissions)
🤖 Prompt for AI Agents
Source: Linters/SAST tools