Skip to content

Commit 32a9466

Browse files
authored
refactor: adapted cicd from core-web (#148)
1 parent c13e454 commit 32a9466

File tree

5 files changed

+84
-40
lines changed

5 files changed

+84
-40
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: "CodeQL"
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
analyze:
8+
name: Analyze
9+
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
language: ["javascript"]
14+
15+
steps:
16+
- name: ⏬ Checkout repo
17+
uses: actions/checkout@v4
18+
19+
- name: 🔄 Initialize CodeQL
20+
uses: github/codeql-action/init@v3
21+
with:
22+
languages: ${{ matrix.language }}
23+
24+
- name: 🔨 Autobuild
25+
uses: github/codeql-action/autobuild@v3
26+
27+
- name: 🔎 Perform CodeQL Analysis
28+
uses: github/codeql-action/analyze@v3
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: "Dependency Review"
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
dependency-review:
8+
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
9+
steps:
10+
- name: ⏬ Checkout repo
11+
uses: actions/checkout@v4
12+
- name: 🔎 Dependency Review
13+
uses: actions/dependency-review-action@v4

.github/workflows/99-labeler.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: "Pull Request Labeler"
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
triage:
8+
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
9+
steps:
10+
- name: 🏷️ Labeler
11+
uses: actions/labeler@v5
12+
continue-on-error: true
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
15+
sync-labels: true

.github/workflows/codeql-analysis.yml

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

.github/workflows/pull-request.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: On-PR to main
3+
4+
on:
5+
pull_request:
6+
branches: ["main"]
7+
merge_group:
8+
branches: ["main"]
9+
10+
permissions:
11+
pull-requests: write
12+
contents: write
13+
actions: read
14+
security-events: write
15+
16+
jobs:
17+
dependabot:
18+
uses: ./.github/workflows/99-auto-merge.yml
19+
20+
codeql:
21+
uses: ./.github/workflows/99-codeql-analysis.yml
22+
23+
dependency-review:
24+
uses: ./.github/workflows/99-dependency-review.yml
25+
26+
labeler:
27+
if: github.event.pull_request.head.repo.owner.login == 'db-ux-design-system'
28+
uses: ./.github/workflows/99-labeler.yml

0 commit comments

Comments
 (0)