actions-rs / audit-check

🛡️ GitHub Action for security audits
https://github.com/marketplace/actions/rust-audit-check
MIT License
170 stars 39 forks source link

"Error: t is not iterable" #225

Closed bobbbay closed 1 year ago

bobbbay commented 1 year ago

Do the checklist before filing an issue:

Description

Under this configuration on a simple project, cargo audit fails with this output.

Workflow code

name: Security audit

on:
  push:
    paths:
      - '**/Cargo.toml'
      - '**/Cargo.lock'
  pull_request:

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - uses: actions-rs/audit-check@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}

Action output

Error: t is not iterable

Expected behavior

Don't fail.

Additional context

cargo audit runs fine on my local machine.

Additionally, it seems like the last time this was a bug, it was due to a change in cargo-audit itself - maybe this is the same thing? #115

bobbbay commented 1 year ago

Sorry, I found out I was using a very old version of this action. Updating to the newest version fixed the issue for me.