v2.0.0
Add Conftest checks from cds-snc/opa_checks to the action.
To use this version, your workflow will need Conftest installed:
- name: Install Conftest
env:
CONFTEST_VERSION: 0.27.0
run: |
wget "https://github.com/open-policy-agent/conftest/releases/download/v${{ env.CONFTEST_VERSION }}/conftest_${{ env.CONFTEST_VERSION }}_Linux_x86_64.tar.gz" \
&& wget "https://github.com/open-policy-agent/conftest/releases/download/v${{ env.CONFTEST_VERSION }}/checksums.txt" \
&& grep 'Linux_x86_64.tar.gz' < checksums.txt | sha256sum --check --status \
&& tar -zxvf "conftest_${{ env.CONFTEST_VERSION }}_Linux_x86_64.tar.gz" conftest \
&& mv conftest /usr/local/bin \
&& rm "conftest_${{ env.CONFTEST_VERSION }}_Linux_x86_64.tar.gz" checksums.txt