Skip to content

Commit 2be8122

Browse files
Fix duplicate workflows in rhodium-standard-repositories satellites
Replace duplicate workflow implementations with calls to root reusable workflows (*-reusable.yml) in all rhodium-standard-repositories/satellites/ directories: - cccp/ (depth 2) - cccp/satellites/nextgen-languages/ (depth 3) - cccp/satellites/nextgen-languages/7-tentacles/ (depth 4) - cccp/satellites/php-aegis/ (depth 3) - cccp/satellites/sanctify-php/ (depth 3) - consent-aware-http/ (depth 2) - ECOSYSTEM.scm/ (depth 2) - META.scm/ (depth 2) - mustfile/ (depth 2) - palimpsest-license/ (depth 2) - robot-repo-automaton/ (depth 2) - rsr-certifier/ (depth 2) - rsr-deployer/ (depth 2) - state.scm/ (depth 2) - well-known-ecosystem/ (depth 2) Remove instant-sync.yml duplicates. Remove codeql-analysis.yml duplicates. Part of estate-wide CI/CD deduplication. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
1 parent b69af4e commit 2be8122

65 files changed

Lines changed: 332 additions & 2343 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
# SPDX-License-Identifier: MPL-2.0
2-
# CodeQL disabled - no scannable source code detected
32
name: CodeQL Security Analysis
43

54
on:
6-
workflow_dispatch: # Manual trigger only
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
branches: [main, master]
9+
schedule:
10+
- cron: '0 6 * * 1'
711

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: false
15+
16+
permissions:
17+
contents: read
818

919
jobs:
10-
placeholder:
11-
runs-on: ubuntu-latest
12-
timeout-minutes: 20
13-
if: false
14-
steps:
15-
- run: echo "Enable when source code is added"
20+
analyze-js:
21+
uses: ../../../../.github/workflows/codeql-reusable.yml
22+
with:
23+
language: javascript-typescript

rhodium-standard-repositories/satellites/ECOSYSTEM.scm/.github/workflows/governance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ permissions:
2323

2424
jobs:
2525
governance:
26-
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@861b5e911d9e5dcfb3c0ab3dd2a9a3c8fd0a1613
26+
uses: ../../../../.github/workflows/governance-reusable.yml

rhodium-standard-repositories/satellites/ECOSYSTEM.scm/.github/workflows/instant-sync.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
# SPDX-License-Identifier: MPL-2.0
2-
# CodeQL disabled - no scannable source code detected
32
name: CodeQL Security Analysis
43

54
on:
6-
workflow_dispatch: # Manual trigger only
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
branches: [main, master]
9+
schedule:
10+
- cron: '0 6 * * 1'
711

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: false
15+
16+
permissions:
17+
contents: read
818

919
jobs:
10-
placeholder:
11-
runs-on: ubuntu-latest
12-
timeout-minutes: 20
13-
if: false
14-
steps:
15-
- run: echo "Enable when source code is added"
20+
analyze-js:
21+
uses: ../../../../.github/workflows/codeql-reusable.yml
22+
with:
23+
language: javascript-typescript

rhodium-standard-repositories/satellites/META.scm/.github/workflows/governance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ permissions:
2323

2424
jobs:
2525
governance:
26-
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@861b5e911d9e5dcfb3c0ab3dd2a9a3c8fd0a1613
26+
uses: ../../../../.github/workflows/governance-reusable.yml

rhodium-standard-repositories/satellites/META.scm/.github/workflows/instant-sync.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

rhodium-standard-repositories/satellites/cccp/.github/workflows/codeql.yml

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,15 @@ on:
99
schedule:
1010
- cron: '0 6 * * 1'
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: false
1215

13-
permissions: read-all
16+
permissions:
17+
contents: read
1418

1519
jobs:
16-
analyze:
17-
runs-on: ubuntu-latest
18-
timeout-minutes: 30
19-
permissions:
20-
contents: read
21-
security-events: write
22-
strategy:
23-
fail-fast: false
24-
matrix:
25-
include:
26-
- language: javascript-typescript
27-
build-mode: none
28-
29-
steps:
30-
- name: Checkout
31-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
32-
33-
- name: Initialize CodeQL
34-
uses: github/codeql-action/init@662472033e021d55d94146f66f6058822b0b39fd # v3.28.1
35-
with:
36-
languages: ${{ matrix.language }}
37-
build-mode: ${{ matrix.build-mode }}
38-
39-
- name: Perform CodeQL Analysis
40-
uses: github/codeql-action/analyze@662472033e021d55d94146f66f6058822b0b39fd # v3.28.1
41-
with:
42-
category: "/language:${{ matrix.language }}"
20+
analyze-js:
21+
uses: ../../../../.github/workflows/codeql-reusable.yml
22+
with:
23+
language: javascript-typescript

rhodium-standard-repositories/satellites/cccp/.github/workflows/governance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ permissions:
2323

2424
jobs:
2525
governance:
26-
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@861b5e911d9e5dcfb3c0ab3dd2a9a3c8fd0a1613
26+
uses: ../../../../.github/workflows/governance-reusable.yml

rhodium-standard-repositories/satellites/cccp/.github/workflows/instant-sync.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 5 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -1,151 +1,15 @@
11
# SPDX-License-Identifier: MPL-2.0
2-
# SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell
32
name: Mirror to Git Forges
43

54
on:
65
push:
76
branches: [main]
87
workflow_dispatch:
98

10-
permissions: read-all
9+
permissions:
10+
contents: read
1111

1212
jobs:
13-
mirror-gitlab:
14-
runs-on: ubuntu-latest
15-
timeout-minutes: 20
16-
if: vars.GITLAB_MIRROR_ENABLED == 'true'
17-
steps:
18-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
19-
with:
20-
fetch-depth: 0
21-
22-
- uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
23-
with:
24-
ssh-private-key: ${{ secrets.GITLAB_SSH_KEY }}
25-
26-
- name: Mirror to GitLab
27-
run: |
28-
ssh-keyscan -t ed25519 gitlab.com >> ~/.ssh/known_hosts
29-
git remote add gitlab git@gitlab.com:hyperpolymath/${{ github.event.repository.name }}.git || true
30-
git push --force gitlab main
31-
32-
mirror-bitbucket:
33-
runs-on: ubuntu-latest
34-
timeout-minutes: 20
35-
if: vars.BITBUCKET_MIRROR_ENABLED == 'true'
36-
steps:
37-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
38-
with:
39-
fetch-depth: 0
40-
41-
- uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
42-
with:
43-
ssh-private-key: ${{ secrets.BITBUCKET_SSH_KEY }}
44-
45-
- name: Mirror to Bitbucket
46-
run: |
47-
ssh-keyscan -t ed25519 bitbucket.org >> ~/.ssh/known_hosts
48-
git remote add bitbucket git@bitbucket.org:hyperpolymath/${{ github.event.repository.name }}.git || true
49-
git push --force bitbucket main
50-
51-
mirror-codeberg:
52-
runs-on: ubuntu-latest
53-
timeout-minutes: 20
54-
if: vars.CODEBERG_MIRROR_ENABLED == 'true'
55-
steps:
56-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
57-
with:
58-
fetch-depth: 0
59-
60-
- uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
61-
with:
62-
ssh-private-key: ${{ secrets.CODEBERG_SSH_KEY }}
63-
64-
- name: Mirror to Codeberg
65-
run: |
66-
ssh-keyscan -t ed25519 codeberg.org >> ~/.ssh/known_hosts
67-
git remote add codeberg git@codeberg.org:hyperpolymath/${{ github.event.repository.name }}.git || true
68-
git push --force codeberg main
69-
70-
mirror-sourcehut:
71-
runs-on: ubuntu-latest
72-
timeout-minutes: 20
73-
if: vars.SOURCEHUT_MIRROR_ENABLED == 'true'
74-
steps:
75-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
76-
with:
77-
fetch-depth: 0
78-
79-
- uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
80-
with:
81-
ssh-private-key: ${{ secrets.SOURCEHUT_SSH_KEY }}
82-
83-
- name: Mirror to SourceHut
84-
run: |
85-
ssh-keyscan -t ed25519 git.sr.ht >> ~/.ssh/known_hosts
86-
git remote add sourcehut git@git.sr.ht:~hyperpolymath/${{ github.event.repository.name }} || true
87-
git push --force sourcehut main
88-
89-
mirror-disroot:
90-
runs-on: ubuntu-latest
91-
timeout-minutes: 20
92-
if: vars.DISROOT_MIRROR_ENABLED == 'true'
93-
steps:
94-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
95-
with:
96-
fetch-depth: 0
97-
98-
- uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
99-
with:
100-
ssh-private-key: ${{ secrets.DISROOT_SSH_KEY }}
101-
102-
- name: Mirror to Disroot
103-
run: |
104-
ssh-keyscan -t ed25519 git.disroot.org >> ~/.ssh/known_hosts
105-
git remote add disroot git@git.disroot.org:hyperpolymath/${{ github.event.repository.name }}.git || true
106-
git push --force disroot main
107-
108-
mirror-gitea:
109-
runs-on: ubuntu-latest
110-
timeout-minutes: 20
111-
if: vars.GITEA_MIRROR_ENABLED == 'true'
112-
steps:
113-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
114-
with:
115-
fetch-depth: 0
116-
117-
- uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
118-
with:
119-
ssh-private-key: ${{ secrets.GITEA_SSH_KEY }}
120-
121-
- name: Mirror to Gitea
122-
run: |
123-
ssh-keyscan -t ed25519 ${{ vars.GITEA_HOST }} >> ~/.ssh/known_hosts
124-
git remote add gitea git@${{ vars.GITEA_HOST }}:hyperpolymath/${{ github.event.repository.name }}.git || true
125-
git push --force gitea main
126-
127-
mirror-radicle:
128-
runs-on: ubuntu-latest
129-
timeout-minutes: 20
130-
if: vars.RADICLE_MIRROR_ENABLED == 'true'
131-
steps:
132-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
133-
with:
134-
fetch-depth: 0
135-
136-
- name: Setup Rust
137-
uses: dtolnay/rust-toolchain@56f84321dbccf38fb67ce29ab63e4754056677e0 # stable
138-
with:
139-
toolchain: stable
140-
141-
- name: Install Radicle
142-
run: |
143-
# Install via cargo (safer than curl|sh)
144-
cargo install radicle-cli --locked
145-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
146-
147-
- name: Mirror to Radicle
148-
run: |
149-
echo "${{ secrets.RADICLE_KEY }}" > ~/.radicle/keys/radicle
150-
chmod 600 ~/.radicle/keys/radicle
151-
rad sync --announce || echo "Radicle sync attempted"
13+
mirror:
14+
uses: ../../../../.github/workflows/mirror-reusable.yml
15+
secrets: inherit

0 commit comments

Comments
 (0)