Skip to main content

No project description provided

Project description

IAM SARIF Report

Code style: black

Validate your IAM Policies and SCPs with AWS Policy Validator, and convert those results into SARIF documents for reporting.

Use Me

To generate findings, iam-sarif-report makes AWS API requests. The AWS Principal you use must be allowed to use the access-analyzer:ValidatePolicy command.

{
  "Effect": "Allow",
  "Action": "access-analyzer:ValidatePolicy",
  "Resource": "*"
}

GitHub Action

See the action.yaml for detailed usage information.

on: [push]
jobs:
  example:
    permissions:
      id-token: write
      security-events: write # When using GitHub Advanced Security
      actions: read
      contents: read
      checks: write # When using SARIF annotator
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      # setup aws access
      - uses: aws-actions/configure-aws-credentials@v3
        with:
          role-to-assume: arn:aws:iam::111111111111:role/my-github-actions-role-test
          aws-region: eu-west-1

      # validate some policies and write a SARIF result file
      - uses: georgealton/iam-sarif-report@v2
        with:
          policies: policies/
          result: results/iam.sarif

      # Public repositories and Organizations with GitHub Advanced Security
      # can upload sarif files using CodeQL
      - uses: github/codeql-action/upload-sarif@v2
        with:
          sarif_file: results

      # Without GitHub Advanced Security use sarif-annotator
      - uses: SirYwell/sarif-annotator@v0.2.1
        with:
          report-path: results/iam.sarif
          source: qodana

Locally

pipx run iam-sarif-report tests/data/policy_checks/policies/*

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

iam_sarif_report-2.3.4.tar.gz (61.5 kB view details)

Uploaded Source

Built Distribution

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

iam_sarif_report-2.3.4-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file iam_sarif_report-2.3.4.tar.gz.

File metadata

  • Download URL: iam_sarif_report-2.3.4.tar.gz
  • Upload date:
  • Size: 61.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for iam_sarif_report-2.3.4.tar.gz
Algorithm Hash digest
SHA256 8656b70078fdff2208ffe206ebfa2bf7a6cb044b7d268eb4c3b11fa8da80eb89
MD5 064f6152d445372659060f44c7a82fc2
BLAKE2b-256 1e2575f141ef9a8a00222e49f98dda31db78cb3c6d3fb25ebd6eed1168df13d3

See more details on using hashes here.

File details

Details for the file iam_sarif_report-2.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for iam_sarif_report-2.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3bd6331620779d832c0e0408d35acba0d76f8800f5b5ed6da51dc08c5367f5af
MD5 2cb12defb4a50bd8b35fa05f3a3c7db0
BLAKE2b-256 f044cdf2afddff74d7f2d8a3b14df70dd28d3cfc8533195ba9f24bd53f6a3cb8

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