Skip to main content

Trigger scans in Informer via your CI/CD pipeline

Project description

Informer.io Scan Trigger Library

This library is designed to trigger a scan in the Informer.io platform. It is particularly useful for automated workflows, as it allows users to initiate scans programmatically.

Overview

When triggered, the library initiates a "once" scan against all related assets specified in a test within the Informer.io platform. It is designed to work with unique test UUIDs that correspond to specific sets of assets.

Features

Trigger Scans Programmatically: Automate your scan initiation process.
Unique Test UUIDs: Each test in the Informer.io platform has a unique ID that this library uses to trigger scans.
Error Logging: Any failures or errors encountered during the scan initiation are logged for troubleshooting.

Usage Instructions

There are two primary methods to use this library:

  1. Using an Environment Variable

Set the INFORMER_TEST_UUID environment variable to the UUID of the test that contains the related assets for your deployment. This UUID can be found in the test detail pane within the Informer.io platform.

Setting the Environment Variable

export INFORMER_TEST_UUID=your-unique-test-uuid

Triggering the Scan

Once the environment variable is set, trigger the scan with the following command:

triggerInformerScan

  1. Passing the UUID as an Argument

Alternatively, you can directly pass the UUID as an argument to the script. Triggering the Scan with an Argument

triggerInformerScan -u your-unique-test-uuid

Limitations

Frequency of Scans: Only one "once" scan can be triggered per 24-hour period per test.
Error Reporting: All errors are reported through logs. The library does not halt the execution but logs the failure details.

Finding the UUID

Each test in Informer.io has a unique UUID. To find this:

Navigate to the test detail pane in the Informer.io platform.
Look for a UUID, which uniquely identifies each test.
Use this UUID with the library to trigger scans on the related assets.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trigger_informer_scan-0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trigger_informer_scan-0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file trigger_informer_scan-0.1.tar.gz.

File metadata

  • Download URL: trigger_informer_scan-0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for trigger_informer_scan-0.1.tar.gz
Algorithm Hash digest
SHA256 cc6e16bab8cfe728cdc33eccfe227b7d2f673a64ee3e24ea3e6f8cff176fec0f
MD5 d5f373449052cb5c0c607eacc871bf14
BLAKE2b-256 2f90237c8199631121795a49f4888a01d286bca7051fb86e084e20f6cddaeb18

See more details on using hashes here.

File details

Details for the file trigger_informer_scan-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for trigger_informer_scan-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a16b64684f711e6dbddc78e2db7dee3b9eb2074ecdf2626bee52c234535dc9a
MD5 cab3b16e2493c4d56ac28382538a790c
BLAKE2b-256 e8f5d305c48a9769a70cbf1a265f9d40c8ace1974355ff6c5b3eeb92443a33ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page