Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: CI
permissions:
contents: read

on:
push:
pull_request:
branches: main

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout repository
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Initialize CodeQL
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: 'Dependency Review'

on:
pull_request:
branches:
- main

permissions:
contents: read
pull-requests: write

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: 'Dependency Review'
uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48
with:
base-ref: ${{ github.event.pull_request.base.sha || 'main' }}
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}
comment-summary-in-pr: on-failure
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "api-worker",
"name": "api",
"license": "AGPL-3.0-only",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ app.get("/", (c) => {
result: null,
error_code: 0,
message:
"FOSSBilling API Worker. See https://github.com/FOSSBilling/api-worker for documentation."
"FOSSBilling API. See https://github.com/FOSSBilling/api for documentation."
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/services/central-alerts/v1/scripts/init-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function initializeDatabase(): Promise<void> {
.map((stmt) => stmt + ";");

for (const statement of statements) {
const command = `echo "${shellEscapeDoubleQuoted(statement)}" | npx wrangler d1 execute api-worker_central-alerts --local`;
const command = `echo "${shellEscapeDoubleQuoted(statement)}" | npx wrangler d1 execute api_central-alerts --local`;
runWranglerCommand(command);
}

Expand Down
2 changes: 1 addition & 1 deletion test/app/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe("FOSSBilling API Worker - Main App", () => {
const data: ApiResponse<null> = await response.json();
expect(data.result).toBe(null);
expect(data.error_code).toBe(0);
expect(data.message).toContain("FOSSBilling API Worker");
expect(data.message).toContain("FOSSBilling API");
});
});

Expand Down
2 changes: 1 addition & 1 deletion test/integration/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe("FOSSBilling API Worker - Full App Integration", () => {
const data = (await response.json()) as ApiResponse<null>;
expect(data.result).toBe(null);
expect(data.error_code).toBe(0);
expect(data.message).toContain("FOSSBilling API Worker");
expect(data.message).toContain("FOSSBilling API");
});
});

Expand Down
Loading
Loading