Skip to content

Commit

Permalink
Create action.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
zivnevo authored Aug 19, 2021
1 parent ba1648e commit ecd892c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'K8s NetworkPolicy Reports'
description: 'An action to annotate a PR with 2 comments: connectivity map and connectivity diff'
author: 'shift-left-netconfig project'

runs:
using: 'composite'
steps:
- uses: actions/checkout@v2
with:
path: new
- uses: actions/checkout@v2
with:
ref: ${{ github.base_ref }}
path: old
- name: Connectivity map
uses: docker://ghcr.io/shift-left-netconfig/nca:1.0
with:
args: --connectivity /github/workspace/new --pod_list /github/workspace/new/release/kubernetes-manifests.yaml --ns_list /github/workspace/new/release --pr_url https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.number }}/comments --gh_token ${{ github.token }} --output_format md
- name: Connectivity diff
uses: docker://ghcr.io/shift-left-netconfig/nca:1.0
with:
args: --semantic_diff /github/workspace/new --base_np_list /github/workspace/old --pod_list /github/workspace/new/release/kubernetes-manifests.yaml --ns_list /github/workspace/new/release --pr_url https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.number }}/comments --gh_token ${{ github.token }} --output_format md

0 comments on commit ecd892c

Please sign in to comment.