microsoft/Purview GitHub Action
Scan repository files and send to Azure Purview for governance
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| client-id | Azure AD application client ID for OIDC authentication | yes | — |
| client-certificate | Optional PEM containing private key + certificate. If provided, certificate auth is used (takes priority over client-secret). If omitted, falls back to client-secret or GitHub OIDC federated credentials. | no | — |
| client-secret | Azure AD application client secret. If provided (and client-certificate is not), client-secret auth is used. If omitted, falls back to GitHub OIDC federated credentials. | no | — |
| tenant-id | Azure AD tenant ID | yes | — |
| users-json-path | Path to users.json in the workflow-definition repo (relative to repo root). In cross-repo workflows the file is fetched via the GitHub API using state-repo-token. | no | users.json |
| purview-account-name | Name of the Purview account | no | — |
| purview-endpoint | Purview API endpoint URL | no | — |
| file-patterns | Comma-separated file patterns to scan (e.g., "*.md,*.json") | no | ** |
| exclude-patterns | Comma-separated file patterns to exclude from scanning (e.g., "node_modules/**,dist/**") | no | **/.git/** |
| max-file-size | Maximum file size in bytes to process | no | 10485760 |
| debug | Enable debug logging | no | false |
| state-repo-branch | Branch in the workflow-definition repo where the state marker is written. If empty, uses that repo's default branch. | no | "" |
| state-repo-token | Token (PAT or GitHub App token) with contents write access to the workflow-definition repo. Used for first-run state tracking and for fetching users.json in cross-repo workflows. | no | "" |
Outputs
| name | description |
|---|---|
| processed-files | Number of files processed |
| failed-requests | Number of failed API requests |
| blocked-files | JSON array of file paths that were blocked by data security policies |