flow
This commit is contained in:
parent
64ceea4f96
commit
1a83161dd4
8
.github/workflows/linpeas-macos.yml
vendored
8
.github/workflows/linpeas-macos.yml
vendored
@ -5,8 +5,6 @@ name: CI-linpeas-macos
|
|||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the master branch
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
push:
|
|
||||||
branches: [ linpeasdevelop ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
@ -25,12 +23,6 @@ jobs:
|
|||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- 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
|
# Runs a single command using the runners shell
|
||||||
- name: Run linpeas
|
- name: Run linpeas
|
||||||
run: linPEAS/linpeas.sh
|
run: linPEAS/linpeas.sh
|
25
.github/workflows/linpeas-ubuntu.yml
vendored
25
.github/workflows/linpeas-ubuntu.yml
vendored
@ -5,8 +5,6 @@ name: CI-linpeas-ubuntu
|
|||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the master branch
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
push:
|
|
||||||
branches: [ linpeasdevelop ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
@ -25,27 +23,6 @@ jobs:
|
|||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- 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
|
# Runs a single command using the runners shell
|
||||||
- name: Run linpeas
|
- name: Run linpeas
|
||||||
run: linPEAS/linpeas.sh
|
run: linPEAS/linpeas.sh
|
||||||
|
|
||||||
- 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 }}
|
|
52
.github/workflows/pre-linpeas-ubuntu.yml
vendored
Normal file
52
.github/workflows/pre-linpeas-ubuntu.yml
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: CI-linpeas-ubuntu
|
||||||
|
|
||||||
|
# Controls when the action will run.
|
||||||
|
on:
|
||||||
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
|
push:
|
||||||
|
branches: [ linpeasdevelop ]
|
||||||
|
|
||||||
|
# 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 }}
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v3
|
Loading…
Reference in New Issue
Block a user