Landscape Data Content Auditor #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Landscape Data Content Auditor | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyyaml | |
| - name: Validate required datasource snapshots exist | |
| working-directory: ./utilities/audit_project_lifecycle_across_tools | |
| run: | | |
| test -f datasources/landscape.yml || (echo "Missing datasources/landscape.yml" >&2; exit 1) | |
| test -f datasources/pcc_projects.yaml || (echo "Missing datasources/pcc_projects.yaml" >&2; exit 1) | |
| test -f datasources/clomonitor.yaml || (echo "Missing datasources/clomonitor.yaml" >&2; exit 1) | |
| - name: Run landscape source diff audit | |
| working-directory: ./utilities/audit_project_lifecycle_across_tools | |
| run: | | |
| python scripts/landscape_source_diff.py | |
| - name: Run repo URL landscape healthcheck | |
| working-directory: ./utilities/audit_project_lifecycle_across_tools | |
| run: | | |
| python scripts/repo_url_landscape_healthcheck.py | |
| - name: Clean up git credentials | |
| run: | | |
| git config --local --unset-all http.https://github.com/.extraheader || true | |
| git config --global --unset-all http.https://github.com/.extraheader || true | |
| git config --local --unset-all http.extraheader || true | |
| git config --global --unset-all http.extraheader || true | |
| git config --local --unset-all url."https://github.com/".insteadOf || true | |
| git config --global --unset-all url."https://github.com/".insteadOf || true | |
| git remote set-url origin https://github.com/${{ github.repository }}.git | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| signoff: true | |
| author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" | |
| committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" | |
| commit-message: "Update landscape data content audit outputs" | |
| title: "Update landscape data content audit outputs" | |
| body: | | |
| Automated refresh of landscape content auditing outputs. | |
| This PR updates: | |
| - `audit/landscape_data_integrity_audit/landscape_source_diff.md` | |
| - `audit/landscape_data_integrity_audit/landscape_source_diff.json` | |
| - `audit/landscape_data_integrity_audit/repo_url_pcc_landscape_anomalies.md` | |
| - `audit/landscape_data_integrity_audit/repo_url_landscape_clomonitor_anomalies.md` | |
| Data sources used: | |
| - `datasources/landscape.yml` | |
| - `datasources/pcc_projects.yaml` | |
| - `datasources/clomonitor.yaml` | |
| branch: automation/landscape-data-content-auditor | |
| add-paths: | | |
| utilities/audit_project_lifecycle_across_tools/audit/landscape_data_integrity_audit/landscape_source_diff.md | |
| utilities/audit_project_lifecycle_across_tools/audit/landscape_data_integrity_audit/landscape_source_diff.json | |
| utilities/audit_project_lifecycle_across_tools/audit/landscape_data_integrity_audit/repo_url_pcc_landscape_anomalies.md | |
| utilities/audit_project_lifecycle_across_tools/audit/landscape_data_integrity_audit/repo_url_landscape_clomonitor_anomalies.md |