chore: allow passes cargo audit options via secrets (#1079)

This let's us more easily ignore a security error that does not have a resolution.
This commit is contained in:
Jacob Bolda
2020-11-10 07:59:04 -06:00
committed by GitHub
parent ea8adcfb06
commit f3ad80c822
2 changed files with 2 additions and 1 deletions

View File

@@ -25,7 +25,7 @@
"pipe": true
},
{
"command": "cargo audit fix --dry-run true",
"command": "cargo audit ${ process.env.CARGO_AUDIT_OPTIONS || '' }",
"dryRunCommand": true,
"runFromRoot": true,
"pipe": true

View File

@@ -32,6 +32,7 @@ jobs:
id: covector
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
CARGO_AUDIT_OPTIONS: ${{ secrets.CARGO_AUDIT_OPTIONS }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
command: 'version-or-publish'