linpeas workflow
This commit is contained in:
parent
3a367d2112
commit
906a62cd6a
@ -1,27 +1,21 @@
|
|||||||
# This is a basic workflow to help you get started with Actions
|
name: CI-linpeas_test
|
||||||
|
|
||||||
name: CI-linpeas_dev
|
|
||||||
|
|
||||||
# Controls when the action will run.
|
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the master branch
|
pull_request:
|
||||||
push:
|
|
||||||
branches:
|
branches:
|
||||||
- linpeas_dev
|
- linpeas_dev
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- 'build_lists\sensitive_files.yaml'
|
||||||
|
- 'linpeas\**'
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
Build_and_test_linpeas:
|
||||||
build:
|
|
||||||
# The type of runner that the job will run on
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build linpeas
|
- name: Build linpeas
|
||||||
@ -30,9 +24,8 @@ jobs:
|
|||||||
cd linPEAS
|
cd linPEAS
|
||||||
python3 -m builder.linpeas_builder
|
python3 -m builder.linpeas_builder
|
||||||
|
|
||||||
# Runs a single command using the runners shell
|
|
||||||
- name: Run linpeas
|
- name: Run linpeas
|
||||||
run: linPEAS/linpeas.sh -h
|
run: linPEAS/linpeas.sh
|
||||||
|
|
||||||
- name: Create local changes
|
- name: Create local changes
|
||||||
run: git add linPEAS/linpeas.sh
|
run: git add linPEAS/linpeas.sh
|
||||||
@ -53,5 +46,20 @@ jobs:
|
|||||||
- name: pull-request
|
- name: pull-request
|
||||||
uses: repo-sync/pull-request@v2
|
uses: repo-sync/pull-request@v2
|
||||||
with:
|
with:
|
||||||
destination_branch: "linpeas_prod"
|
destination_branch: "master"
|
||||||
github_token: ${{ secrets.PULL_REQUEST_TOKEN }}
|
github_token: ${{ secrets.PULL_REQUEST_TOKEN }}
|
||||||
|
|
||||||
|
Build_and_test_macpeas:
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build macpeas
|
||||||
|
run: |
|
||||||
|
python3 -m pip install PyYAML
|
||||||
|
cd linPEAS
|
||||||
|
python3 -m builder.linpeas_builder
|
||||||
|
|
||||||
|
- name: Run macpeas
|
||||||
|
run: linPEAS/linpeas.sh -o SysI,Container,Devs,AvaSof,ProCronSrvcsTmrsSocks,Net,UsrI,SofI
|
20
.github/workflows/CI-linpeas_master.yml
vendored
20
.github/workflows/CI-linpeas_master.yml
vendored
@ -1,20 +0,0 @@
|
|||||||
name: CI-linpeas_master
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- linpeas_prod
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: pull-request
|
|
||||||
uses: repo-sync/pull-request@v2
|
|
||||||
with:
|
|
||||||
destination_branch: "master"
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
27
.github/workflows/CI-linpeas_prod.yml
vendored
27
.github/workflows/CI-linpeas_prod.yml
vendored
@ -1,27 +0,0 @@
|
|||||||
name: CI-linpeas_prod
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- linpeas_prod
|
|
||||||
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Test_linpeas_macos:
|
|
||||||
runs-on: macos-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Run linpeas
|
|
||||||
run: linPEAS/linpeas.sh -o SysI,Container,Devs,AvaSof,ProCronSrvcsTmrsSocks,Net,UsrI,SofI
|
|
||||||
|
|
||||||
Test_linpeas_ubuntu:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Run linpeas
|
|
||||||
run: linPEAS/linpeas.sh -a
|
|
52
.github/workflows/CI-linpeas_prod_rebuild.yml
vendored
52
.github/workflows/CI-linpeas_prod_rebuild.yml
vendored
@ -1,52 +0,0 @@
|
|||||||
# 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 }}
|
|
Loading…
Reference in New Issue
Block a user