Skip to content

Commit

Permalink
Allow multiple policies
Browse files Browse the repository at this point in the history
  • Loading branch information
zivnevo committed Aug 26, 2021
1 parent ee2e16d commit 990e11f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,23 @@ runs:
- uses: actions/checkout@v2
with:
path: repo
- run: |
for policy in ${{ inputs.corporate-policies }}
do
export POLICIES_WITH_B="-b $policy $POLICIES_WITH_B"
done
echo "::set-output name=policies-with-b::$(echo $POLICIES_WITH_B)"
shell: bash
id: add-b-flag
- name: Baseline requirements validation
uses: docker://ghcr.io/shift-left-netconfig/baseline-rules-verifier:1.1
with:
args: -b ${{ inputs.corporate-policies }} -r /github/workspace/repo/${{ inputs.deployment-path }} /github/workspace/repo/${{ inputs.netpol-path }} --pr_url https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.number }}/comments --tmp_dir /tmp --gh_token ${{ github.token }} --nca_path /nca
args: >
${{ steps.add-b-flag.outputs.policies-with-b }}
-r /github/workspace/repo/${{ inputs.deployment-path }}
/github/workspace/repo/${{ inputs.netpol-path }}
--pr_url https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.number }}/comments
--tmp_dir /tmp
--gh_token ${{ github.token }}
--nca_path /nca

0 comments on commit 990e11f

Please sign in to comment.