Skip to content

Add InfraScan audit workflow#4256

Draft
igor-soldev wants to merge 4 commits into
openforis:masterfrom
igor-soldev:master
Draft

Add InfraScan audit workflow#4256
igor-soldev wants to merge 4 commits into
openforis:masterfrom
igor-soldev:master

Conversation

@igor-soldev

Copy link
Copy Markdown

Description

  • Added InfraScan GitHub Actions workflow for automated infrastructure scanning

    Added a new CI workflow (.github/workflows/infrascan.yml) that runs InfraScan on every push and pull_request to automatically detect outdated or vulnerable infrastructure dependencies (e.g. Docker images).

  • Configured automated report generation and artifact upload

    The workflow generates an HTML security report and uploads it as a GitHub Actions artifact, making scan results easily accessible for every run.

  • Improved security visibility for project dependencies

    Enables continuous monitoring of infrastructure-level vulnerabilities, helping prevent outdated or insecure container usage from being introduced in future changes.

  • Closes issue Update PostgreSQL/PostGIS Docker image reference in README.md #4174

    Introduces automated detection for outdated infrastructure references (including the PostGIS Docker image mentioned in the issue) and prevents similar issues from going unnoticed in future updates.

Types of changes

  • Docs change
  • Refactoring
  • Dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

How has this been tested

The workflow was tested in GitHub Actions by triggering both push and pull_request events. All steps execute successfully on ubuntu-latest, including:

  • repository checkout,
  • report directory creation,
  • InfraScan execution,
  • HTML report generation,
  • artifact upload (infrascan-report).

Verified that if: always() ensures report upload even when the scan step fails.

Do you consider this PR needs further testing?

  • No
  • Yes

Recommended to validate scan coverage across different repository states and ensure compatibility with future InfraScan versions and scanner modes.

UI changes

No UI changes.

Disclaimer

This PR introduces a CI-based security scanning workflow using InfraScan. It does not modify application runtime behavior, only adds a GitHub Actions pipeline for infrastructure auditing.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

@SteRiccio
SteRiccio marked this pull request as draft May 28, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant