Skip to content

Commit

Permalink
Remove checkout action
Browse files Browse the repository at this point in the history
This way, users will have more flexibility to checkout what they want
  • Loading branch information
zivnevo authored Aug 30, 2021
1 parent 66b8a49 commit d96c106
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,14 @@ inputs:
runs:
using: 'composite'
steps:
- uses: actions/checkout@v2
with:
path: repo
- shell: sh
run: |
mkdir -p ${{ github.workspace }}/artifacts
chmod a+rw ${{ github.workspace }}/artifacts
- name: Analyze
uses: docker://ghcr.io/shift-left-netconfig/net-top-analyzer@sha256:bd40a99fdbd293040a66166abd978bb806e17bf991998ba83fe06bac77e63a06
with:
args: -dirpath /github/workspace/repo -commitid ${{ github.sha }} -giturl ${{ env.GITHUB_SERVER_URL }}/${{ github.repository }} -gitbranch ${{ github.ref }} -outputfile /github/workspace/artifacts/app-net-top.json
args: -dirpath /github/workspace -commitid ${{ github.sha }} -giturl ${{ env.GITHUB_SERVER_URL }}/${{ github.repository }} -gitbranch ${{ github.ref }} -outputfile /github/workspace/artifacts/app-net-top.json
- name: Synthesize
uses: docker://ghcr.io/shift-left-netconfig/netpol-synth@sha256:0fef873e13d2250cdcb795d30e842a5cb7b5f60d0ae0fec57f5639f8df5a7f4c
with:
Expand All @@ -39,17 +36,16 @@ runs:
- name: Commit changes
shell: sh
run: |
cd ${{ github.workspace }}/repo
cd ${{ github.workspace }}
mkdir -p $( dirname ${{ inputs.netpolYamlPath }} )
cp ${{ github.workspace }}/artifacts/netpols.yaml ${{ inputs.netpolYamlPath }}
git config user.name ${{ github.actor }}
git config user.email '${{ github.actor }}@users.noreply.github.com'
git add ${{ github.workspace }}/repo/${{ inputs.netpolYamlPath }}
git add ${{ github.workspace }}/${{ inputs.netpolYamlPath }}
git commit -m"adding network policies to enforce minimal connectivity"
- name: Open PR
uses: peter-evans/create-pull-request@v3
with:
path: repo
title: Automatic updates to NetworkPolicies
branch: update-netpols
branch-suffix: timestamp

0 comments on commit d96c106

Please sign in to comment.