Check Mondoo's code signing certifcate is not expired #251
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Check Mondoo's code signing certifcate is not expired" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
check_certificate: | |
name: Check Mondoo's code signing certificate has expired | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install Mondoo cnspec | |
shell: bash | |
run: | | |
echo Installing Mondoo cnspec... | |
bash -c "$(curl -sSL https://install.mondoo.com/sh/cnspec)" | |
- name: Check expiration of public-code-signing.cer | |
shell: bash | |
run: | | |
cnspec providers install network | |
cnspec scan local --detect-cicd --score-threshold 100 --policy-bundle test/cnspec/check-certificate.mql.yaml -o full |