Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
b41855d
Resolve linting issues
pranalidhanavade Mar 6, 2025
4201556
chore: Update Dockerfile (#254)
KambleSahil3 Mar 13, 2025
884264b
fix: resolved prettier errors
pranalidhanavade Mar 6, 2025
99fb113
chore: Update Dockerfile (#256)
KambleSahil3 Mar 17, 2025
72bbc53
fix: resolved prettier errors in compass.yml file
pranalidhanavade Mar 6, 2025
0db0c91
feat: push docker image (#257)
KambleSahil3 Mar 27, 2025
9383784
feat/push-docker-image (#258)
KambleSahil3 Mar 27, 2025
08a04a4
feat:w3c-revocation
tipusinghaw Mar 31, 2025
628296c
refactor: removed revocation code
tipusinghaw Mar 31, 2025
ee9b63d
refactore: removed constant and enum
tipusinghaw Mar 31, 2025
d54d66e
Merge pull request #261 from credebl/refactor/w3c-revocation-v1
tipusinghaw Mar 31, 2025
ea58a19
w3c revocation changes
tipusinghaw Apr 3, 2025
2d26e62
refactor: get index method
tipusinghaw Apr 8, 2025
b518e46
refactor: solved sonar cloud issue
tipusinghaw Apr 8, 2025
d3dfc46
refactor: changes randomness logic to get unused index
tipusinghaw Apr 8, 2025
d640319
fix: revocation issue
tipusinghaw Apr 8, 2025
0af677f
refactor: resolved comments
tipusinghaw Apr 13, 2025
647fb60
refactor: add validation code in helper file
tipusinghaw Apr 13, 2025
46e3396
refactor: resolved comments
tipusinghaw Apr 14, 2025
f6491e3
refactor: removed logs
tipusinghaw Apr 14, 2025
f47325c
refactor: resolved comments
tipusinghaw Apr 17, 2025
217e738
chore:updated patch version
tipusinghaw Apr 17, 2025
8cd194e
added logs to debug the issue
tipusinghaw Apr 17, 2025
8e6b463
chore: Update Dockerfile (#254)
KambleSahil3 Mar 13, 2025
91137e7
chore: Update Dockerfile (#256)
KambleSahil3 Mar 17, 2025
57737ff
feat: push docker image (#257)
KambleSahil3 Mar 27, 2025
9fca65e
feat/push-docker-image (#258)
KambleSahil3 Mar 27, 2025
e03573d
feat:w3c-revocation
tipusinghaw Mar 31, 2025
7b978c9
refactor: removed revocation code
tipusinghaw Mar 31, 2025
30e6667
refactore: removed constant and enum
tipusinghaw Mar 31, 2025
5556b5b
chore: Update Dockerfile (#256) (#266)
bhavanakarwade Apr 25, 2025
f7bfa98
chore: remove unwanted package (#268)
GHkrishna Apr 29, 2025
560f746
refactor: updated validation for create-bslc
tipusinghaw May 27, 2025
97328dc
bump: v0.5.3 to v0.5.15
tipusinghaw May 28, 2025
7728d0e
bump: updated CI file
tipusinghaw May 28, 2025
2d1e087
bump: updated ubuntu version and project name
tipusinghaw May 28, 2025
9861b1b
refactor: formatted code and updated eslint config
tipusinghaw May 28, 2025
c9c508c
refactor: updated tsconfig and CI file
tipusinghaw May 28, 2025
7a509f0
fix: prettier formatting issue
tipusinghaw May 28, 2025
f6c31c9
fix: logger issue
tipusinghaw May 30, 2025
2c061cb
fixed: linting issues
tipusinghaw May 30, 2025
e814332
Merge branch 'bump/credo-0.5.3-to-0.5.13' of https://github.com/crede…
tipusinghaw May 30, 2025
6a68180
feat: patch and tgz issue
tipusinghaw Jun 2, 2025
7255fee
fix: linting issue
tipusinghaw Jun 5, 2025
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
78 changes: 0 additions & 78 deletions .eslintrc.js

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Continous Delivery

on:
push:
tags:
- 'v*'

env:
REGISTRY: ghcr.io
SERVICE: credo-controller

jobs:
build-and-push:
name: Push Docker image to GitHub
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Extract Git Tag
id: get_tag
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker Image ${{ env.SERVICE }}
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.SERVICE }}:${{ env.TAG }}
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.SERVICE }}:latest
16 changes: 8 additions & 8 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@

on:
pull_request:
branches: [main]
branches: [main, develop]
push:
branches: [main]
branches: [main, develop]

concurrency:
# Cancel previous runs that are not completed yet
group: afj-controller-${{ github.ref }}-${{ github.repository }}-${{ github.event_name }}
group: credo-controller-${{ github.ref }}-${{ github.repository }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
validate:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Validate
steps:
- name: Checkout afj-controller
- name: Checkout credo-controller
uses: actions/checkout@v4

- name: Setup NodeJS
uses: actions/setup-node@v3
- name: Setup node v20
uses: actions/setup-node@v4
with:
node-version: 18.19.0
node-version: 20
cache: 'yarn'

- name: Install dependencies
run: yarn install

- name: Linting
run: yarn lint

- name: Prettier
run: yarn check-format

- name: Compile
run: yarn check-types

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
48 changes: 2 additions & 46 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,48 +1,3 @@
# FROM ubuntu:20.04

# ENV DEBIAN_FRONTEND noninteractive

# RUN apt-get update -y && apt-get install -y \
# software-properties-common \
# apt-transport-https \
# curl \
# # Only needed to build indy-sdk
# build-essential

# RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -

# # yarn
# RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
# echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

# # install depdencies
# RUN apt-get update -y && apt-get install -y --allow-unauthenticated \
# nodejs

# # install depdencies
# RUN apt-get update -y && apt-get install -y --allow-unauthenticated \
# nodejs

# # Install yarn seperately due to `no-install-recommends` to skip nodejs install
# RUN apt-get install -y --no-install-recommends yarn

# RUN yarn global add patch-package
# # AFJ specifc setup
# WORKDIR /www

# COPY bin ./bin
# COPY package.json ./package.json
# COPY patches ./patches

# RUN yarn install --production

# COPY build ./build
# # COPY libindy_vdr.so /usr/lib/
# # COPY libindy_vdr.so /usr/local/lib/

# ENTRYPOINT [ "./bin/afj-rest.js", "start" ]


# Stage 1: Builder stage
FROM node:18.19.0 AS builder

Expand All @@ -55,6 +10,7 @@ COPY package.json yarn.lock ./
COPY . .

# Install dependencies
RUN rm -rf node_modules
RUN yarn install --frozen-lockfile

RUN yarn global add patch-package
Expand All @@ -75,4 +31,4 @@ COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/patches ./patches

# Set entry point
ENTRYPOINT ["node", "./bin/afj-rest.js", "start"]
ENTRYPOINT ["node", "./bin/afj-rest.js", "start"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const run = async () => {
{
// ... AFJ Config ... //
},
agentDependencies
agentDependencies,
)
await startServer(agent, { port: 3000 })
}
Expand Down
13 changes: 8 additions & 5 deletions bin/afj-rest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env node
/* eslint-disable @typescript-eslint/no-var-requires, no-undef */

const { runCliServer } = require('../build/cli')

runCliServer()
import('../build/cli.js')
.then((module) => {
module.runCliServer()
})
.catch((err) => {
console.error('Error starting CLI server:', err)
process.exit(1)
})
2 changes: 1 addition & 1 deletion compass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ labels:
- language:typescript
- self-sovereign-identity
- source:github
customFields: null
customFields: null
4 changes: 4 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"port": 4001,
"schemaFileServerURL": "https://schema.credebl.id/schemas/"
}
93 changes: 93 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import { fileURLToPath } from 'url';
import { dirname } from 'path';
import eslintPluginImport from 'eslint-plugin-import';
import eslintPluginPrettier from 'eslint-plugin-prettier';
import eslintPluginTypescript from '@typescript-eslint/eslint-plugin';
import parser from '@typescript-eslint/parser';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

export default [
{
ignores: ['**/tests/*', 'build'],
files: ['**/*.ts'],
languageOptions: {
parser,
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.eslint.json'],
sourceType: 'module',
},
globals: {
console: false, // no-console rule
},
},
plugins: {
'@typescript-eslint': eslintPluginTypescript,
import: eslintPluginImport,
prettier: eslintPluginPrettier,
},
rules: {
'no-constant-condition': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false, variables: true }],
'@typescript-eslint/explicit-member-accessibility': 'error',
'no-console': 'error',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/consistent-type-imports': 'error',
'import/no-cycle': 'error',
'import/order': [
'error',
{
groups: ['type', ['builtin', 'external'], 'parent', 'sibling', 'index'],
alphabetize: {
order: 'asc',
},
'newlines-between': 'always',
},
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: false,
},
],
'prettier/prettier': 'error',
},
},
{
files: ['jest.config.ts', 'eslint.config.js'],
languageOptions: {
parserOptions: {
sourceType: 'commonjs',
},
globals: {
require: true,
module: true,
__dirname: true,
},
},
},
{
files: ['*.test.ts', '**/__tests__/**', '**/tests/**', 'jest.*.ts', '**/samples/**'],
languageOptions: {
globals: {
describe: true,
test: true,
expect: true,
jest: true,
},
},
rules: {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
},
},
];
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ const config: Config.InitialOptions = {
testTimeout: 120000,
}

export default config
export default config
Loading
Loading