• Tips for choosing walking shoes: Carmen and I walk a lot. Thinking about our shoes is probably a good idea and this is a good reminder of that.
  • Mondoo Package Ansible Role: Small, simple, ansible role that installs mondoo client on hosts that ansible can reach (ssh service running) and manage
  • Simmons: Mondoo Operations Exerciser: Ben Rockwood’s production playwright end to end tester. Really cool, simple, zero cost production test runner . I love it! He can capture a browser video file as part of the test and upload it to github for storage. Also zero cost because their repo is public.

Github action for above

name: 'TEST: Mondoo Production Regions'
on:
  workflow_dispatch:
  schedule:
    - cron:  '15,45 * * * *'


jobs:
  asset_scan:
    name: Docker Asset Scan
    timeout-minutes: 5
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Create US Mondoo Config
      run: | 
        echo $ | base64 -d > mondoo-config.yaml
    - name: Pull mondoo/client Image
      run: | 
        docker pull mondoo/client
    - name: Perform scan
      run: | 
        docker run -v `pwd`/mondoo-config.yaml:/root/.config/mondoo/mondoo.yml --rm mondoo/client scan local
    - name: Create EU Mondoo Config
      run: | 
        echo $ | base64 -d > mondoo-config.yaml
    - name: Perform scan
      run: | 
        docker run -v `pwd`/mondoo-config.yaml:/root/.config/mondoo/mondoo.yml --rm mondoo/client scan local
    - name: Discord notification
      uses: Ilshidur/action-discord@0.3.2
      if: failure()
      env:
        DISCORD_WEBHOOK: $
      with:
       args: ':rotating_light: :zap: :warning: Oh no!  Simmons says: The docker scan test failed!'


  console_test:
    timeout-minutes: 10
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        region: [US, EU]
    steps:
    - uses: actions/checkout@v3
    - id: region
      uses: ASzc/change-string-case-action@v5
      with:
        string: $
    - uses: actions/setup-node@v3
      with:
        node-version: 16
    - name: Install dependencies
      run: yarn
    - name: Install Playwright Browsers
      run: yarn playwright install chromium --with-deps
    - name: Run Playwright tests
      run: yarn playwright test
      env:
        MONDOO_USER: $
        MONDOO_PASSWORD: $
        REGION: $
    - uses: actions/upload-artifact@v3
      if: failure()
      with:
        name: simmons-playwright-report
        path: results/
        retention-days: 14
    - name: Discord notification
      uses: Ilshidur/action-discord@0.3.2
      if: failure()
      env:
        DISCORD_WEBHOOK: $
      with:
       args: ':rotating_light: :zap: :warning: Oh no!  Simmons says: The $ :flag_$: console test failed! -> $/$/actions/runs/$ '