Skip to content

Commit

Permalink
Ignore bandit false positives.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Jan 23, 2021
1 parent 5fd17ce commit b5fc452
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tests/test_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ def test_secrets(github_manager, example_config, module_cassette):
assert "PYPI_TOKEN" not in existing_secrets
assert "ANACONDA_TOKEN" not in existing_secrets

token = (
"pypi-AgEIcHlwaS5vcmcCCzEyMzQ1LTY3ODkwAAI5eyJwZXJtaXNzaW9ucyI6IHsicHJvamVjdHMiO"
"iBbImRpY3QyY3NzIl19LCAidmVyc2lvbiI6IDF9AAAGIKPx0SjZyXiAHSDI89qzSUwDTx_iWtoPJEztlNS7Q5I6"
token = ( # nosec: B105
"pypi-AgEIcHlwaS5vcmcCCzEyMzQ1LTY3ODkwAAI5eyJwZXJtaXNzaW9ucyI6IHsicHJvamVjdHMiO"
"iBbImRpY3QyY3NzIl19LCAidmVyc2lvbiI6IDF9AAAGIKPx0SjZyXiAHSDI89qzSUwDTx_iWtoPJEztlNS7Q5I6"
)

github_manager.secrets(
PYPI_TOKEN=token,
ANACONDA_TOKEN="hijklmnop", # nosec: B105
overwrite=False,
)

github_manager.secrets(PYPI_TOKEN=token, ANACONDA_TOKEN="hijklmnop", overwrite=False)

# List of existing secrets.
raw_secrets = repo._json(repo._get(str(secrets_url), headers=repo.PREVIEW_HEADERS), 200)
existing_secrets = [secret["name"] for secret in raw_secrets["secrets"]]
Expand Down

0 comments on commit b5fc452

Please sign in to comment.