Skip to content

Commit 596f760

Browse files
authored
Add GitHub actions for SSDLC analysis & SBOM generation (#4347)
1 parent bd098e9 commit 596f760

9 files changed

Lines changed: 53 additions & 31 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: github-actions
5+
directory: '/'
6+
schedule:
7+
interval: weekly

‎.github/workflows/backend.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@ on:
66
- main
77
paths:
88
- requirements/**
9-
- docker/config/server.env.template
9+
- docker/**
1010
- pontoon/**
1111
- .github/workflows/backend.yml
1212
pull_request:
1313
branches:
1414
- main
1515
paths:
1616
- requirements/**
17-
- docker/config/server.env.template
17+
- docker/**
1818
- pontoon/**
1919
- .github/workflows/backend.yml
2020
workflow_dispatch:
2121

22+
permissions: {}
23+
2224
jobs:
2325
test:
2426
name: pytest

‎.github/workflows/docker-build.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
- dev
1212
workflow_dispatch:
1313

14+
permissions: {}
15+
1416
jobs:
1517
build:
1618
name: Build Docker Image

‎.github/workflows/frontend.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ on:
1717
- .github/workflows/frontend.yml
1818
workflow_dispatch:
1919

20+
permissions: {}
21+
2022
jobs:
2123
typescript:
2224
name: TypeScript
@@ -44,8 +46,8 @@ jobs:
4446
persist-credentials: false
4547
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
4648
with: { node-version: '24' }
47-
- name: Install globals
48-
run: npm install --global license-checker-rseidelsohn@4.4.2
49+
- run: | # zizmor: ignore[adhoc-packages]
50+
npm install --global license-checker-rseidelsohn@4.4.2
4951
- name: Install dependencies
5052
run: npm ci
5153
- name: Check licenses

‎.github/workflows/heroku.yml‎

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

‎.github/workflows/js-lint.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ on:
3131
- .github/workflows/js-lint.yml
3232
workflow_dispatch:
3333

34+
permissions: {}
35+
3436
jobs:
3537
eslint:
3638
name: eslint

‎.github/workflows/py-lint.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ on:
1717
- requirements/lint.txt
1818
workflow_dispatch:
1919

20+
permissions: {}
21+
2022
jobs:
2123
ruff:
2224
runs-on: ubuntu-latest

‎.github/workflows/sbom.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: SSDLC SBOM
2+
3+
on:
4+
push:
5+
branches: [main]
6+
release:
7+
types: [published]
8+
9+
permissions: {}
10+
11+
jobs:
12+
sbom:
13+
permissions:
14+
actions: read
15+
contents: write
16+
uses: mozilla/ssdlc-actions/.github/workflows/ssdlc-sbom.yml@507c5535545434e6892219c12d8d56a2b39bf710 # v1.1
17+
with:
18+
sbom_name: ${{ github.event.release.tag_name || github.sha }}

‎.github/workflows/security.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: SSDLC Analysis
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
permissions: {}
9+
10+
jobs:
11+
code-security-analysis:
12+
permissions:
13+
security-events: write
14+
uses: mozilla/ssdlc-actions/.github/workflows/code-security-analysis-public-repo.yml@507c5535545434e6892219c12d8d56a2b39bf710 # v1.1

0 commit comments

Comments
 (0)