---
name: Audit

on:
  schedule:
    - cron: '30 2 * * *'

jobs:
  audit:
    runs-on: ubuntu-20.04
    name: Audit
    timeout-minutes: 15

    strategy:
      fail-fast: false
      matrix:
        branch:
          - '2.4'
          - '2.6'
          - '2.7'
          - master

    steps:
      - run: sudo npm install -g npm@6

      - run: |
          sudo rm /etc/apt/sources.list.d/*.list
          sudo apt update
          sudo apt install g++-10 libgbm1 graphicsmagick fonts-liberation2

      - uses: actions/checkout@v3
        with:
          ref: ${{ matrix.branch }}

      - uses: camptocamp/initialise-gopass-summon-action@v2
        with:
          ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}}
          github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}}

      - run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
      - run: python3 -m pip install --user --upgrade pip
      - run: python3 -m pip install --user --pre c2cciutils[audit]

      - name: Audit
        run: c2cciutils-audit --branch=${{ matrix.branch }}

---
name: Audit

on:
  schedule:
    - cron: '30 2 * * *'

jobs:
  audit:
    runs-on: ubuntu-20.04
    name: Audit
    timeout-minutes: 15

    strategy:
      fail-fast: false
      matrix:
        branch:
          - '2.4'
          - '2.6'
          - '2.7'
          - master

    steps:
      - run: sudo npm install -g npm@6

      - run: |
          sudo rm /etc/apt/sources.list.d/*.list
          sudo apt update
          sudo apt install g++-10 libgbm1 graphicsmagick fonts-liberation2

      - uses: actions/checkout@v3
        with:
          ref: ${{ matrix.branch }}
          token: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}

      - uses: camptocamp/initialise-gopass-summon-action@v2
        with:
          ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}}
          github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}}

      - run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
      - run: python3 -m pip install --user --upgrade pip
      - run: python3 -m pip install --user --pre c2cciutils[audit]

      - name: Audit
        run: c2cciutils-audit --branch=${{ matrix.branch }}

Fix the checkout user to be able to create pull request for Snyk fix
Fix the checkout user to be able to create pull request for Snyk fix
