mirror of
https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite.git
synced 2026-02-14 08:36:38 +00:00
Compare commits
6 Commits
test/chack
...
chack-agen
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d78334715 | ||
|
|
381bf74ebd | ||
|
|
44969c086d | ||
|
|
1e6c83f43b | ||
|
|
993679e8a2 | ||
|
|
82a9aecd08 |
4
.github/workflows/CI-master_tests.yml
vendored
4
.github/workflows/CI-master_tests.yml
vendored
@@ -371,8 +371,8 @@ jobs:
|
||||
# Build linpeas
|
||||
- name: Build macpeas
|
||||
run: |
|
||||
python3 -m pip install PyYAML
|
||||
python3 -m pip install requests
|
||||
python3 -m pip install PyYAML --break-system-packages
|
||||
python3 -m pip install requests --break-system-packages
|
||||
cd linPEAS
|
||||
python3 -m builder.linpeas_builder --all --output linpeas_fat.sh
|
||||
|
||||
|
||||
4
.github/workflows/PR-tests.yml
vendored
4
.github/workflows/PR-tests.yml
vendored
@@ -178,8 +178,8 @@ jobs:
|
||||
# Build linpeas (macpeas)
|
||||
- name: Build macpeas
|
||||
run: |
|
||||
python3 -m pip install PyYAML
|
||||
python3 -m pip install requests
|
||||
python3 -m pip install PyYAML --break-system-packages
|
||||
python3 -m pip install requests --break-system-packages
|
||||
cd linPEAS
|
||||
python3 -m builder.linpeas_builder --all --output linpeas_fat.sh
|
||||
|
||||
|
||||
7
.github/workflows/chack-agent-pr-triage.yml
vendored
7
.github/workflows/chack-agent-pr-triage.yml
vendored
@@ -30,10 +30,15 @@ jobs:
|
||||
- name: Resolve PR context
|
||||
id: gate
|
||||
env:
|
||||
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
||||
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
pr_number="${{ github.event.workflow_run.pull_requests[0].number }}"
|
||||
pr_number="${PR_NUMBER}"
|
||||
if [ -z "$pr_number" ] && [ -n "$HEAD_BRANCH" ]; then
|
||||
pr_number="$(gh pr list --state open --head "$HEAD_BRANCH" --json number --jq '.[0].number')"
|
||||
fi
|
||||
if [ -z "$pr_number" ]; then
|
||||
echo "No pull request found for this workflow_run; skipping."
|
||||
echo "should_run=false" >> "$GITHUB_OUTPUT"
|
||||
|
||||
@@ -9,9 +9,7 @@ jobs:
|
||||
resolve_pr_context:
|
||||
if: >
|
||||
${{ github.event.workflow_run.conclusion == 'failure' &&
|
||||
github.event.workflow_run.pull_requests &&
|
||||
github.event.workflow_run.pull_requests[0] &&
|
||||
!startsWith(github.event.workflow_run.head_commit.message, 'Fix CI failures for PR #') }}
|
||||
!startsWith(github.event.workflow_run.head_commit.message || '', 'Fix CI failures for PR #') }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
pull-requests: read
|
||||
@@ -27,8 +25,23 @@ jobs:
|
||||
id: pr_context
|
||||
env:
|
||||
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
|
||||
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
if [ -z "$PR_NUMBER" ] && [ -n "$HEAD_BRANCH" ]; then
|
||||
PR_NUMBER="$(gh pr list --state open --head "$HEAD_BRANCH" --json number --jq '.[0].number')"
|
||||
fi
|
||||
if [ -z "$PR_NUMBER" ]; then
|
||||
echo "No pull request found for workflow_run; skipping."
|
||||
{
|
||||
echo "number="
|
||||
echo "author="
|
||||
echo "head_repo="
|
||||
echo "head_branch=${HEAD_BRANCH}"
|
||||
echo "should_run=false"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
pr_author=$(gh api -H "Accept: application/vnd.github+json" \
|
||||
/repos/${{ github.repository }}/pulls/${PR_NUMBER} \
|
||||
--jq '.user.login')
|
||||
@@ -63,7 +76,7 @@ jobs:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
issues: write
|
||||
actions: read
|
||||
actions: write
|
||||
env:
|
||||
CHACK_LOGS_HTTP_URL: ${{ secrets.CHACK_LOGS_HTTP_URL }}
|
||||
steps:
|
||||
@@ -186,31 +199,44 @@ jobs:
|
||||
env:
|
||||
TARGET_BRANCH: ${{ needs.resolve_pr_context.outputs.head_branch }}
|
||||
PR_NUMBER: ${{ needs.resolve_pr_context.outputs.number }}
|
||||
ORIGINAL_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
if git diff --quiet; then
|
||||
echo "No changes to commit."
|
||||
exit 0
|
||||
fi
|
||||
rm -f chack_failure_summary.txt chack_prompt.txt
|
||||
git add -A
|
||||
# Avoid workflow-file pushes with token scopes that cannot write workflows.
|
||||
git reset -- .github/workflows || true
|
||||
git checkout -- .github/workflows || true
|
||||
git clean -fdx -- .github/workflows || true
|
||||
git reset -- chack_failure_summary.txt chack_prompt.txt
|
||||
if git diff --cached --name-only | grep -q '^.github/workflows/'; then
|
||||
echo "Workflow-file changes are still staged; skipping push without workflows permission."
|
||||
|
||||
pushed=false
|
||||
|
||||
if ! git diff --quiet; then
|
||||
git add -A
|
||||
# Avoid workflow-file pushes with token scopes that cannot write workflows.
|
||||
git reset -- .github/workflows || true
|
||||
git checkout -- .github/workflows || true
|
||||
git clean -fdx -- .github/workflows || true
|
||||
git reset -- chack_failure_summary.txt chack_prompt.txt
|
||||
if git diff --cached --name-only | grep -q '^.github/workflows/'; then
|
||||
echo "Workflow-file changes are still staged; skipping push without workflows permission."
|
||||
exit 0
|
||||
fi
|
||||
if ! git diff --cached --quiet; then
|
||||
git commit -m "Fix CI failures for PR #${PR_NUMBER}"
|
||||
fi
|
||||
fi
|
||||
|
||||
after_head="$(git rev-parse HEAD)"
|
||||
if [ "$after_head" = "$ORIGINAL_HEAD_SHA" ]; then
|
||||
echo "No commit produced by Chack Agent for PR #${PR_NUMBER}."
|
||||
exit 0
|
||||
fi
|
||||
if git diff --cached --quiet; then
|
||||
echo "No committable changes left after filtering."
|
||||
exit 0
|
||||
fi
|
||||
git commit -m "Fix CI failures for PR #${PR_NUMBER}"
|
||||
|
||||
if ! git push origin HEAD:${TARGET_BRANCH}; then
|
||||
echo "Push failed (likely token workflow permission limits); leaving run successful without push."
|
||||
exit 0
|
||||
fi
|
||||
pushed=true
|
||||
|
||||
if [ "$pushed" = "true" ]; then
|
||||
gh workflow run PR-tests.yml --ref "${TARGET_BRANCH}"
|
||||
fi
|
||||
|
||||
- name: Comment with Chack Agent result
|
||||
if: ${{ steps.run_chack.outputs.final-message != '' }}
|
||||
|
||||
78
chack_failed_steps_logs.txt
Normal file
78
chack_failed_steps_logs.txt
Normal file
@@ -0,0 +1,78 @@
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0971447Z ##[group]Run python3 -m pip install PyYAML
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0973220Z [36;1mpython3 -m pip install PyYAML[0m
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0974295Z [36;1mcd linPEAS[0m
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0975572Z [36;1mpython3 -m builder.linpeas_builder --all --output linpeas_fat.sh[0m
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0977560Z [36;1mpython3 -m builder.linpeas_builder --all-no-fat --output linpeas.sh[0m
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0979599Z [36;1mpython3 -m builder.linpeas_builder --small --output linpeas_small.sh[0m
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.1030508Z shell: /usr/bin/bash -e {0}
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.1031413Z env:
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.1032274Z GOTOOLCHAIN: local
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.1033062Z ##[endgroup]
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:53.2773854Z Defaulting to user installation because normal site-packages is not writeable
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:53.9179829Z Requirement already satisfied: PyYAML in /usr/lib/python3/dist-packages (6.0.1)
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:54.4874406Z [+] Downloading regexes...
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:54.4875412Z Downloaded and saved in '/home/runner/work/PEASS-ng/PEASS-ng/build_lists/regexes.yaml' successfully!
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4167144Z Traceback (most recent call last):
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4168210Z File "<frozen runpy>", line 198, in _run_module_as_main
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4168928Z File "<frozen runpy>", line 88, in _run_code
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4169887Z File "/home/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/linpeas_builder.py", line 55, in <module>
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4171167Z main(all_modules, all_no_fat_modules, no_network_scanning, small, include_modules, exclude_modules, output)
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4174426Z File "/home/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/linpeas_builder.py", line 21, in main
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4175184Z lbuilder.build()
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4175907Z File "/home/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/src/linpeasBuilder.py", line 49, in build
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4176725Z variables = self.__generate_variabless()
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4177314Z ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4178354Z AttributeError: 'LinpeasBuilder' object has no attribute '_LinpeasBuilder__generate_variabless'. Did you mean: '_LinpeasBuilder__generate_variables'?
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4179375Z [+] Checking the syntax of the modules...
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4179814Z [+] 161 checks located
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4180275Z [+] Building temporary linpeas_base.sh with the indicated modules...
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4180829Z [+] Building variables...
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4408740Z ##[error]Process completed with exit code 1.
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.7998800Z ##[group]Run python3 -m pip install PyYAML --break-system-packages
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8000500Z [36;1mpython3 -m pip install PyYAML --break-system-packages[0m
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8002330Z [36;1mpython3 -m pip install requests --break-system-packages[0m
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8003570Z [36;1mcd linPEAS[0m
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8004650Z [36;1mpython3 -m builder.linpeas_builder --all --output linpeas_fat.sh[0m
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8064280Z shell: /bin/bash -e {0}
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8066060Z ##[endgroup]
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.4294420Z Collecting PyYAML
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.4743840Z Downloading pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl.metadata (2.4 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.4954660Z Downloading pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl (173 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.5318410Z Installing collected packages: PyYAML
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.5701980Z Successfully installed PyYAML-6.0.3
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.9577360Z Collecting requests
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.9800800Z Downloading requests-2.32.5-py3-none-any.whl.metadata (4.9 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.0525640Z Collecting charset_normalizer<4,>=2 (from requests)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.0742810Z Downloading charset_normalizer-3.4.4-cp314-cp314-macosx_10_13_universal2.whl.metadata (37 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.0836310Z Collecting idna<4,>=2.5 (from requests)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.0937740Z Downloading idna-3.11-py3-none-any.whl.metadata (8.4 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1041400Z Collecting urllib3<3,>=1.21.1 (from requests)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1142970Z Downloading urllib3-2.6.3-py3-none-any.whl.metadata (6.9 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1190720Z Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.14/site-packages (from requests) (2026.1.4)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1197310Z Downloading requests-2.32.5-py3-none-any.whl (64 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1265270Z Downloading charset_normalizer-3.4.4-cp314-cp314-macosx_10_13_universal2.whl (207 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1306710Z Downloading idna-3.11-py3-none-any.whl (71 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1392250Z Downloading urllib3-2.6.3-py3-none-any.whl (131 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1589340Z Installing collected packages: urllib3, idna, charset_normalizer, requests
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.3645880Z
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.3747140Z Successfully installed charset_normalizer-3.4.4 idna-3.11 requests-2.32.5 urllib3-2.6.3
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.6562290Z [+] Downloading regexes...
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.6667880Z Downloaded and saved in '/Users/runner/work/PEASS-ng/PEASS-ng/build_lists/regexes.yaml' successfully!
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4616130Z Traceback (most recent call last):
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4616610Z [+] Checking the syntax of the modules...
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4725080Z File "<frozen runpy>", line 198, in _run_module_as_main
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4725360Z [+] 161 checks located
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4828080Z File "<frozen runpy>", line 88, in _run_code
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4828560Z [+] Building temporary linpeas_base.sh with the indicated modules...
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4930770Z File "/Users/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/linpeas_builder.py", line 55, in <module>
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4931470Z [+] Building variables...
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5000130Z main(all_modules, all_no_fat_modules, no_network_scanning, small, include_modules, exclude_modules, output)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5101380Z ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5202990Z File "/Users/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/linpeas_builder.py", line 21, in main
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5304190Z lbuilder.build()
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5405030Z ~~~~~~~~~~~~~~^^
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5506090Z File "/Users/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/src/linpeasBuilder.py", line 49, in build
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5610220Z variables = self.__generate_variabless()
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5711540Z ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5813140Z AttributeError: 'LinpeasBuilder' object has no attribute '_LinpeasBuilder__generate_variabless'. Did you mean: '_LinpeasBuilder__generate_variables'?
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5911930Z ##[error]Process completed with exit code 1.
|
||||
7
chack_failure_summary.txt
Normal file
7
chack_failure_summary.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
Job: Build_and_test_linpeas_master (id 63593607403)
|
||||
URL: https://github.com/peass-ng/PEASS-ng/actions/runs/22007237743/job/63593607403
|
||||
Step: Build linpeas
|
||||
|
||||
Job: Build_and_test_macpeas_master (id 63593607406)
|
||||
URL: https://github.com/peass-ng/PEASS-ng/actions/runs/22007237743/job/63593607406
|
||||
Step: Build macpeas
|
||||
19
chack_prompt.txt
Normal file
19
chack_prompt.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
You are fixing a failing CI-master_test run in peass-ng/PEASS-ng.
|
||||
The failing workflow run is: https://github.com/peass-ng/PEASS-ng/actions/runs/22007237743
|
||||
The failing commit SHA is: 381bf74ebd87e5005525d68d52021dd646477f8b
|
||||
The target branch for the final PR is: master
|
||||
|
||||
Failure summary:
|
||||
Job: Build_and_test_linpeas_master (id 63593607403)
|
||||
URL: https://github.com/peass-ng/PEASS-ng/actions/runs/22007237743/job/63593607403
|
||||
Step: Build linpeas
|
||||
|
||||
Job: Build_and_test_macpeas_master (id 63593607406)
|
||||
URL: https://github.com/peass-ng/PEASS-ng/actions/runs/22007237743/job/63593607406
|
||||
Step: Build macpeas
|
||||
Failed-step logs file absolute path (local runner): /home/runner/work/PEASS-ng/PEASS-ng/chack_failed_steps_logs.txt
|
||||
Read that file to inspect the exact failing logs.
|
||||
|
||||
Please identify the cause, apply an easy, simple and minimal fix, and update files accordingly.
|
||||
Run any fast checks you can locally (no network).
|
||||
Leave the repo in a state ready to commit; changes will be committed and pushed automatically.
|
||||
Reference in New Issue
Block a user