chore: Sync MokoStandards v04.04 #110
4
.github/workflows/auto-dev-issue.yml
vendored
4
.github/workflows/auto-dev-issue.yml
vendored
@@ -8,8 +8,8 @@
|
|||||||
# DEFGROUP: GitHub.Workflow
|
# DEFGROUP: GitHub.Workflow
|
||||||
# INGROUP: MokoStandards.Automation
|
# INGROUP: MokoStandards.Automation
|
||||||
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
||||||
# PATH: /templates/workflows/shared/auto-dev-issue.yml
|
# PATH: /templates/workflows/shared/auto-dev-issue.yml.template
|
||||||
# VERSION: 04.04.01
|
# VERSION: 04.05.00
|
||||||
# BRIEF: Auto-create tracking issue when a dev/** or rc/** branch is pushed
|
# BRIEF: Auto-create tracking issue when a dev/** or rc/** branch is pushed
|
||||||
# NOTE: Synced via bulk-repo-sync to .github/workflows/auto-dev-issue.yml in all governed repos.
|
# NOTE: Synced via bulk-repo-sync to .github/workflows/auto-dev-issue.yml in all governed repos.
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/auto-release.yml
vendored
4
.github/workflows/auto-release.yml
vendored
@@ -6,8 +6,8 @@
|
|||||||
# DEFGROUP: GitHub.Workflow
|
# DEFGROUP: GitHub.Workflow
|
||||||
# INGROUP: MokoStandards.Release
|
# INGROUP: MokoStandards.Release
|
||||||
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
||||||
# PATH: /templates/workflows/shared/auto-release.yml
|
# PATH: /templates/workflows/shared/auto-release.yml.template
|
||||||
# VERSION: 04.04.01
|
# VERSION: 04.05.00
|
||||||
# BRIEF: Unified build & release pipeline — version branch, platform version, badges, tag, release
|
# BRIEF: Unified build & release pipeline — version branch, platform version, badges, tag, release
|
||||||
#
|
#
|
||||||
# ╔════════════════════════════════════════════════════════════════════════╗
|
# ╔════════════════════════════════════════════════════════════════════════╗
|
||||||
|
|||||||
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
@@ -8,8 +8,8 @@
|
|||||||
# DEFGROUP: GitHub.Workflow.Template
|
# DEFGROUP: GitHub.Workflow.Template
|
||||||
# INGROUP: MokoStandards.Security
|
# INGROUP: MokoStandards.Security
|
||||||
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
||||||
# PATH: /templates/workflows/generic/codeql-analysis.yml
|
# PATH: /templates/workflows/generic/codeql-analysis.yml.template
|
||||||
# VERSION: 04.04.01
|
# VERSION: 04.05.00
|
||||||
# BRIEF: CodeQL security scanning workflow (generic — all repo types)
|
# BRIEF: CodeQL security scanning workflow (generic — all repo types)
|
||||||
# NOTE: Deployed to .github/workflows/codeql-analysis.yml in governed repos.
|
# NOTE: Deployed to .github/workflows/codeql-analysis.yml in governed repos.
|
||||||
# CodeQL does not support PHP directly; JavaScript scans JSON/YAML/shell.
|
# CodeQL does not support PHP directly; JavaScript scans JSON/YAML/shell.
|
||||||
|
|||||||
4
.github/workflows/deploy-demo.yml
vendored
4
.github/workflows/deploy-demo.yml
vendored
@@ -21,8 +21,8 @@
|
|||||||
# DEFGROUP: GitHub.Workflow
|
# DEFGROUP: GitHub.Workflow
|
||||||
# INGROUP: MokoStandards.Deploy
|
# INGROUP: MokoStandards.Deploy
|
||||||
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
||||||
# PATH: /templates/workflows/shared/deploy-demo.yml
|
# PATH: /templates/workflows/shared/deploy-demo.yml.template
|
||||||
# VERSION: 04.04.01
|
# VERSION: 04.05.00
|
||||||
# BRIEF: SFTP deployment workflow for demo server — synced to all governed repos
|
# BRIEF: SFTP deployment workflow for demo server — synced to all governed repos
|
||||||
# NOTE: Synced via bulk-repo-sync to .github/workflows/deploy-demo.yml in all governed repos.
|
# NOTE: Synced via bulk-repo-sync to .github/workflows/deploy-demo.yml in all governed repos.
|
||||||
# Port is resolved in order: DEMO_FTP_PORT variable → :port suffix in DEMO_FTP_HOST → 22.
|
# Port is resolved in order: DEMO_FTP_PORT variable → :port suffix in DEMO_FTP_HOST → 22.
|
||||||
|
|||||||
69
.github/workflows/deploy-dev.yml
vendored
69
.github/workflows/deploy-dev.yml
vendored
@@ -21,8 +21,8 @@
|
|||||||
# DEFGROUP: GitHub.Workflow
|
# DEFGROUP: GitHub.Workflow
|
||||||
# INGROUP: MokoStandards.Deploy
|
# INGROUP: MokoStandards.Deploy
|
||||||
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
||||||
# PATH: /templates/workflows/shared/deploy-dev.yml
|
# PATH: /templates/workflows/shared/deploy-dev.yml.template
|
||||||
# VERSION: 04.04.01
|
# VERSION: 04.05.00
|
||||||
# BRIEF: SFTP deployment workflow for development server — synced to all governed repos
|
# BRIEF: SFTP deployment workflow for development server — synced to all governed repos
|
||||||
# NOTE: Synced via bulk-repo-sync to .github/workflows/deploy-dev.yml in all governed repos.
|
# NOTE: Synced via bulk-repo-sync to .github/workflows/deploy-dev.yml in all governed repos.
|
||||||
# Port is resolved in order: DEV_FTP_PORT variable → :port suffix in DEV_FTP_HOST → 22.
|
# Port is resolved in order: DEV_FTP_PORT variable → :port suffix in DEV_FTP_HOST → 22.
|
||||||
@@ -667,69 +667,8 @@ jobs:
|
|||||||
# Remove temp files that should never be left behind
|
# Remove temp files that should never be left behind
|
||||||
rm -f /tmp/deploy_key /tmp/sftp-config.json
|
rm -f /tmp/deploy_key /tmp/sftp-config.json
|
||||||
|
|
||||||
- name: Create or update failure issue
|
# Dev deploys fail silently — no issue creation.
|
||||||
if: failure()
|
# Demo and RS deploys create failure issues (production-facing).
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }}
|
|
||||||
run: |
|
|
||||||
REPO="${{ github.repository }}"
|
|
||||||
RUN_URL="${{ github.server_url }}/${REPO}/actions/runs/${{ github.run_id }}"
|
|
||||||
ACTOR="${{ github.actor }}"
|
|
||||||
BRANCH="${{ github.ref_name }}"
|
|
||||||
EVENT="${{ github.event_name }}"
|
|
||||||
NOW=$(date -u '+%Y-%m-%d %H:%M:%S UTC')
|
|
||||||
LABEL="deploy-failure"
|
|
||||||
|
|
||||||
TITLE="fix: Dev deployment failed — ${REPO}"
|
|
||||||
BODY="## Dev Deployment Failed
|
|
||||||
|
|
||||||
A deployment to the dev server failed and requires attention.
|
|
||||||
|
|
||||||
| Field | Value |
|
|
||||||
|-------|-------|
|
|
||||||
| **Repository** | \`${REPO}\` |
|
|
||||||
| **Branch** | \`${BRANCH}\` |
|
|
||||||
| **Trigger** | ${EVENT} |
|
|
||||||
| **Actor** | @${ACTOR} |
|
|
||||||
| **Failed at** | ${NOW} |
|
|
||||||
| **Run** | [View workflow run](${RUN_URL}) |
|
|
||||||
|
|
||||||
### Next steps
|
|
||||||
1. Review the [workflow run log](${RUN_URL}) for the specific error.
|
|
||||||
2. Fix the underlying issue (credentials, SFTP connectivity, permissions).
|
|
||||||
3. Re-trigger the deployment via **Actions → Deploy to Dev Server → Run workflow**.
|
|
||||||
|
|
||||||
---
|
|
||||||
*Auto-created by deploy-dev.yml — close this issue once the deployment is resolved.*"
|
|
||||||
|
|
||||||
# Ensure the label exists (idempotent — no-op if already present)
|
|
||||||
gh label create "$LABEL" \
|
|
||||||
--repo "$REPO" \
|
|
||||||
--color "CC0000" \
|
|
||||||
--description "Automated deploy failure tracking" \
|
|
||||||
--force 2>/dev/null || true
|
|
||||||
|
|
||||||
# Look for an existing open deploy-failure issue
|
|
||||||
EXISTING=$(gh api "repos/${REPO}/issues?labels=${LABEL}&state=all&per_page=1&sort=created&direction=desc" \
|
|
||||||
--jq '.[0].number' 2>/dev/null)
|
|
||||||
|
|
||||||
if [ -n "$EXISTING" ] && [ "$EXISTING" != "null" ]; then
|
|
||||||
gh api "repos/${REPO}/issues/${EXISTING}" \
|
|
||||||
-X PATCH \
|
|
||||||
-f title="$TITLE" \
|
|
||||||
-f body="$BODY" \
|
|
||||||
-f state="open" \
|
|
||||||
--silent
|
|
||||||
echo "📋 Failure issue #${EXISTING} updated/reopened: ${REPO}" >> "$GITHUB_STEP_SUMMARY"
|
|
||||||
else
|
|
||||||
gh issue create \
|
|
||||||
--repo "$REPO" \
|
|
||||||
--title "$TITLE" \
|
|
||||||
--body "$BODY" \
|
|
||||||
--label "$LABEL" \
|
|
||||||
--assignee "jmiller-moko" \
|
|
||||||
| tee -a "$GITHUB_STEP_SUMMARY"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Deployment summary
|
- name: Deployment summary
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
4
.github/workflows/deploy-rs.yml
vendored
4
.github/workflows/deploy-rs.yml
vendored
@@ -21,8 +21,8 @@
|
|||||||
# DEFGROUP: GitHub.Workflow
|
# DEFGROUP: GitHub.Workflow
|
||||||
# INGROUP: MokoStandards.Deploy
|
# INGROUP: MokoStandards.Deploy
|
||||||
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
||||||
# PATH: /templates/workflows/shared/deploy-rs.yml
|
# PATH: /templates/workflows/shared/deploy-rs.yml.template
|
||||||
# VERSION: 04.04.01
|
# VERSION: 04.05.00
|
||||||
# BRIEF: SFTP deployment workflow for release staging server — synced to all governed repos
|
# BRIEF: SFTP deployment workflow for release staging server — synced to all governed repos
|
||||||
# NOTE: Synced via bulk-repo-sync to .github/workflows/deploy-rs.yml in all governed repos.
|
# NOTE: Synced via bulk-repo-sync to .github/workflows/deploy-rs.yml in all governed repos.
|
||||||
# Port is resolved in order: RS_FTP_PORT variable → :port suffix in RS_FTP_HOST → 22.
|
# Port is resolved in order: RS_FTP_PORT variable → :port suffix in RS_FTP_HOST → 22.
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
# DEFGROUP: GitHub.Workflow
|
# DEFGROUP: GitHub.Workflow
|
||||||
# INGROUP: MokoStandards.Firewall
|
# INGROUP: MokoStandards.Firewall
|
||||||
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
||||||
# PATH: /templates/workflows/shared/enterprise-firewall-setup.yml
|
# PATH: /templates/workflows/shared/enterprise-firewall-setup.yml.template
|
||||||
# VERSION: 04.04.01
|
# VERSION: 04.05.00
|
||||||
# BRIEF: Enterprise firewall configuration — generates outbound allow-rules including SFTP deployment server
|
# BRIEF: Enterprise firewall configuration — generates outbound allow-rules including SFTP deployment server
|
||||||
# NOTE: Reads DEV_FTP_HOST / DEV_FTP_PORT variables to include SFTP egress rules alongside HTTPS rules.
|
# NOTE: Reads DEV_FTP_HOST / DEV_FTP_PORT variables to include SFTP egress rules alongside HTTPS rules.
|
||||||
|
|
||||||
|
|||||||
6
.github/workflows/repository-cleanup.yml
vendored
6
.github/workflows/repository-cleanup.yml
vendored
@@ -8,8 +8,8 @@
|
|||||||
# DEFGROUP: GitHub.Workflow
|
# DEFGROUP: GitHub.Workflow
|
||||||
# INGROUP: MokoStandards.Maintenance
|
# INGROUP: MokoStandards.Maintenance
|
||||||
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
||||||
# PATH: /templates/workflows/shared/repository-cleanup.yml
|
# PATH: /templates/workflows/shared/repository-cleanup.yml.template
|
||||||
# VERSION: 04.04.01
|
# VERSION: 04.05.00
|
||||||
# BRIEF: Recurring repository maintenance — labels, branches, workflows, logs, doc indexes
|
# BRIEF: Recurring repository maintenance — labels, branches, workflows, logs, doc indexes
|
||||||
# NOTE: Synced via bulk-repo-sync to .github/workflows/repository-cleanup.yml in all governed repos.
|
# NOTE: Synced via bulk-repo-sync to .github/workflows/repository-cleanup.yml in all governed repos.
|
||||||
# Runs on the 1st and 15th of each month at 6:00 AM UTC, and on manual dispatch.
|
# Runs on the 1st and 15th of each month at 6:00 AM UTC, and on manual dispatch.
|
||||||
@@ -266,7 +266,7 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }}
|
GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }}
|
||||||
run: |
|
run: |
|
||||||
REPO="${{ github.repository }}"
|
REPO="${{ github.repository }}"
|
||||||
CURRENT="chore/sync-mokostandards-v04.04"
|
CURRENT="chore/sync-mokostandards-v04.05"
|
||||||
echo "## 🌿 Branch Cleanup" >> $GITHUB_STEP_SUMMARY
|
echo "## 🌿 Branch Cleanup" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "" >> $GITHUB_STEP_SUMMARY
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/standards-compliance.yml
vendored
2
.github/workflows/standards-compliance.yml
vendored
@@ -5,7 +5,7 @@
|
|||||||
# INGROUP: MokoStandards.Compliance
|
# INGROUP: MokoStandards.Compliance
|
||||||
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
||||||
# PATH: /.github/workflows/standards-compliance.yml
|
# PATH: /.github/workflows/standards-compliance.yml
|
||||||
# VERSION: 04.04.01
|
# VERSION: 04.05.00
|
||||||
# BRIEF: MokoStandards compliance validation workflow
|
# BRIEF: MokoStandards compliance validation workflow
|
||||||
# NOTE: Validates repository structure, documentation, and coding standards
|
# NOTE: Validates repository structure, documentation, and coding standards
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/sync-version-on-merge.yml
vendored
4
.github/workflows/sync-version-on-merge.yml
vendored
@@ -8,8 +8,8 @@
|
|||||||
# DEFGROUP: GitHub.Workflow
|
# DEFGROUP: GitHub.Workflow
|
||||||
# INGROUP: MokoStandards.Automation
|
# INGROUP: MokoStandards.Automation
|
||||||
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
# REPO: https://github.com/mokoconsulting-tech/MokoStandards
|
||||||
# PATH: /templates/workflows/shared/sync-version-on-merge.yml
|
# PATH: /templates/workflows/shared/sync-version-on-merge.yml.template
|
||||||
# VERSION: 04.04.01
|
# VERSION: 04.05.00
|
||||||
# BRIEF: Auto-bump patch version on every push to main and propagate to all file headers
|
# BRIEF: Auto-bump patch version on every push to main and propagate to all file headers
|
||||||
# NOTE: Synced via bulk-repo-sync to .github/workflows/sync-version-on-merge.yml in all governed repos.
|
# NOTE: Synced via bulk-repo-sync to .github/workflows/sync-version-on-merge.yml in all governed repos.
|
||||||
# README.md is the single source of truth for the repository version.
|
# README.md is the single source of truth for the repository version.
|
||||||
|
|||||||
Reference in New Issue
Block a user