From 9107052966288b14152e85527d6427b253960822 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Mon, 21 Jun 2021 00:58:22 +0200 Subject: [PATCH] fix --- .github/workflows/CI-linpeas_dev.yml | 2 - .github/workflows/CI-linpeas_prod_rebuild.yml | 52 +++++++++++++++++++ build_lists/sensitive_files.yaml | 10 ++-- 3 files changed, 57 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/CI-linpeas_prod_rebuild.yml diff --git a/.github/workflows/CI-linpeas_dev.yml b/.github/workflows/CI-linpeas_dev.yml index bd32f27..f4d4d98 100644 --- a/.github/workflows/CI-linpeas_dev.yml +++ b/.github/workflows/CI-linpeas_dev.yml @@ -8,8 +8,6 @@ on: push: branches: - linpeas_dev - paths-ignore: - - 'linPEAS/linpeas.sh' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/.github/workflows/CI-linpeas_prod_rebuild.yml b/.github/workflows/CI-linpeas_prod_rebuild.yml new file mode 100644 index 0000000..5228a2d --- /dev/null +++ b/.github/workflows/CI-linpeas_prod_rebuild.yml @@ -0,0 +1,52 @@ +# This is a basic workflow to help you get started with Actions + +name: CI-linpeas_prod_rebuild + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + pull_request: + branches: + - master + paths: + - 'build_lists/sensitive_files.yaml' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Build linpeas + run: | + python3 -m pip install PyYAML + cd linPEAS + python3 -m builder.linpeas_builder + + # Runs a single command using the runners shell + - name: Run linpeas + run: linPEAS/linpeas.sh -h + + - name: Create local changes + run: git add linPEAS/linpeas.sh + + - name: Commit results to Github + run: | + git config --local user.email "" + git config --global user.name "CI-linpeas-ubuntu" + git commit -m "linpeas.sh auto update" -a --allow-empty + + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} diff --git a/build_lists/sensitive_files.yaml b/build_lists/sensitive_files.yaml index 899fbed..c6dafba 100644 --- a/build_lists/sensitive_files.yaml +++ b/build_lists/sensitive_files.yaml @@ -1568,11 +1568,11 @@ search: files: ? "ddclient.conf" - : - bad_regex: ".*password.*" - type: f - search_in: - - common + : + bad_regex: ".*password.*" + type: f + search_in: + - common Interesting logs: config: