Skip to content

Commit 2a247ba

Browse files
committed
chore: rename trustification references to guacsec
1 parent 3962c91 commit 2a247ba

File tree

24 files changed

+168
-187
lines changed

24 files changed

+168
-187
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
blank_issues_enabled: false
33
contact_links:
44
- name: GitHub Discussions
5-
url: https://github.com/trustification/exhort-javascript-api/discussions/
5+
url: https://github.com/guacsec/trustify-da-javascript-client/discussions/
66
about: You can also use Discussions for questions and ideas.

.github/workflows/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ jobs:
104104
- name: Run integration tests cli
105105
working-directory: integration
106106
run: bash ./run_its.sh
107+
env:
108+
EXHORT_DEV_MODE: 'true'
107109

108110
- name: Upload coverage reports
109111
if: ${{ matrix.node == env.MAIN_NODE_VER }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33

44
env:
55
# 🖊️ EDIT to change the image build settings.
6-
IMAGE_NAME: exhort-javascript-api
6+
IMAGE_NAME: trustify-da-javascript-client
77
IMAGE_REGISTRY: quay.io/ecosystem-appeng
88
DOCKERFILE_PATH: ./docker-image/Dockerfiles/Dockerfile.alpha
99

.github/workflows/stage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Stage
33

44
env:
55
# 🖊️ EDIT to change the image build settings.
6-
IMAGE_NAME: exhort-javascript-api
6+
IMAGE_NAME: trustify-da-javascript-client
77
IMAGE_REGISTRY: quay.io/ecosystem-appeng
88
DOCKERFILE_PATH: ./docker-image/Dockerfiles/Dockerfile
99

@@ -29,7 +29,7 @@ jobs:
2929
stage:
3030
runs-on: ubuntu-latest
3131
# Branches that starts with `release/` shouldn't trigger this workflow, as these are triggering the release workflow.
32-
if: github.repository_owner == 'trustification' && github.event.pull_request.merged == true && !startsWith(github.head_ref, 'release/')
32+
if: github.repository_owner == 'guacsec' && github.event.pull_request.merged == true && !startsWith(github.head_ref, 'release/')
3333
environment: staging
3434
name: Stage the project
3535
steps:

.idea/modules.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to *exhort-javascript-api*<br/>![nodejs-version][10]
1+
# Contributing to *trustify-da-javascript-client*<br/>![nodejs-version][10]
22

33
* Fork the repository
44
* Create a new branch
@@ -24,7 +24,7 @@
2424

2525
### OpenAPI Specifications
2626

27-
The OpenAPI specification is located in the [`exhort-api-spec`](https://github.com/trustification/exhort-api-spec) where the Java and Javascript libraries are generated.
27+
The OpenAPI specification is located in the [`trustify-da-api-spec`](https://github.com/trustify-da/trustify-da-api-model) where the Java and Javascript libraries are generated.
2828

2929
### Code Walkthrough
3030

@@ -86,7 +86,7 @@ scripts in [integration/testers](integration/testers).<br/>
8686

8787
We have 3 _testers_:
8888
* [integration/testers/cli](integration/testers/cli) is a _package.json_ used for installing the _ESM module_.
89-
Invoking the CLI Script is done against the _@trustification/exhort-javascript-api/dist/src/cli.js_ in the tester's
89+
Invoking the CLI Script is done against the _@trustify-da/trustify-da-javascript-client/dist/src/cli.js_ in the tester's
9090
_node_modules_.
9191
* [integration/testers/javascript](integration/testers/javascript) is a _javascript_ script invoking the _ESM module_.
9292
* [integration/testers/typescript](integration/testers/typescript) is a _typescript_ script invoking the _ESM module_.
@@ -119,7 +119,7 @@ contribution. See the [DCO](DCO) file for details.
119119

120120
<!-- Real links -->
121121
[0]: https://www.conventionalcommits.org/en/v1.0.0/
122-
[1]: https://github.com/trustification/exhort/blob/0.1.x/src/main/resources/META-INF/openapi.yaml
122+
[1]: https://github.com/guacsec/exhort/blob/0.1.x/src/main/resources/META-INF/openapi.yaml
123123

124124
<!-- Badge links -->
125125
[10]: https://badgen.net/badge/NodeJS%20Version/18/68a063

README.md

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Exhort JavaScript API<br/>![latest-no-snapshot][0] ![latest-snapshot][1]
22

3-
* Looking for the OpenAPI Spec? Try [Exhort API Spec](https://github.com/trustification/exhort-api-spec)
4-
* Looking for our Java API? Try [Exhort Java API](https://github.com/trustification/exhort-java-api).
5-
* Looking for our Backend implementation? Try [Exhort](https://github.com/trustification/exhort).
3+
* Looking for the OpenAPI Spec? Try [Exhort API Spec](https://github.com/trustify-da/trustify-da-api-model)
4+
* Looking for our Java API? Try [Exhort Java API](https://github.com/guacsec/exhort-java-api).
5+
* Looking for our Backend implementation? Try [Exhort](https://github.com/guacsec/exhort).
66

77
The _Exhort JavaScript API_ module is deployed to _GitHub Package Registry_.
88

@@ -31,10 +31,11 @@ See [GH Docs](https://docs.github.com/en/packages/working-with-a-github-packages
3131

3232
<h3>Usage</h3>
3333
<p>
34-
Configuring <em>NPM</em> to look in <em>GHPR</em> for the <em>trustification</em> namespace is done by adding
35-
<code>@trustification:registry=https://npm.pkg.github.com</code> to <em>.npmrc</em> in the project root or user home.
34+
Configuring <em>NPM</em> to look in <em>GHPR</em> for the <em>trustify-da</em> namespace is done by adding
35+
<code>@trustify-da:registry=https://npm.pkg.github.com</code> to <em>.npmrc</em> in the project root or user home.
3636

3737
```shell
38+
echo "@trustify-da:registry=https://npm.pkg.github.com" >> .npmrc
3839
echo "@trustification:registry=https://npm.pkg.github.com" >> .npmrc
3940
```
4041
</p>
@@ -44,11 +45,11 @@ echo "@trustification:registry=https://npm.pkg.github.com" >> .npmrc
4445
Use as ESM Module from an ESM module
4546

4647
```shell
47-
npm install @trustification/exhort-javascript-api
48+
npm install @trustify-da/trustify-da-javascript-client
4849
```
4950

5051
```javascript
51-
import exhort from '@trustification/exhort-javascript-api'
52+
import exhort from '@trustify-da/trustify-da-javascript-client'
5253
import fs from 'node:fs'
5354

5455
// Get stack analysis in JSON format
@@ -65,14 +66,14 @@ let componentAnalysis = await exhort.componentAnalysis('/path/to/pom.xml')
6566
Use as ESM Module from Common-JS module
6667

6768
```shell
68-
npm install @trustification/exhort-javascript-api
69+
npm install @trustify-da/trustify-da-javascript-client
6970
```
7071

7172
```javascript
7273
async function loadExhort()
7374
{
7475
// dynamic import is the only way to import ESM module into commonJS module
75-
const { default: exhort } = await import('@trustification/exhort-javascript-api');
76+
const { default: exhort } = await import('@trustify-da/trustify-da-javascript-client');
7677
return exhort
7778
}
7879
const runExhort = (manifestPath) => {
@@ -98,13 +99,13 @@ Use as CLI Script
9899
<summary>Click for help menu</summary>
99100

100101
```shell
101-
$ npx @trustification/exhort-javascript-api help
102+
$ npx @trustify-da/trustify-da-javascript-client help
102103

103-
Usage: exhort-javascript-api {component|stack}
104+
Usage: trustify-da-javascript-client {component|stack}
104105

105106
Commands:
106-
exhort-javascript-api stack </path/to/manifest> [--html|--summary] produce stack report for manifest path
107-
exhort-javascript-api component <path/to/manifest> [--summary] produce component report for a manifest type and content
107+
trustify-da-javascript-client stack </path/to/manifest> [--html|--summary] produce stack report for manifest path
108+
trustify-da-javascript-client component <path/to/manifest> [--summary] produce component report for a manifest type and content
108109

109110
Options:
110111
--help Show help [boolean]
@@ -113,38 +114,38 @@ Options:
113114

114115
```shell
115116
# get stack analysis in json format
116-
$ npx @trustification/exhort-javascript-api stack /path/to/pom.xml
117+
$ npx @trustify-da/trustify-da-javascript-client stack /path/to/pom.xml
117118

118119
# get stack analysis in json format (summary only)
119-
$ npx @trustification/exhort-javascript-api stack /path/to/pom.xml --summary
120+
$ npx @trustify-da/trustify-da-javascript-client stack /path/to/pom.xml --summary
120121

121122
# get stack analysis in html format format
122-
$ npx @trustification/exhort-javascript-api stack /path/to/pom.xml --html
123+
$ npx @trustify-da/trustify-da-javascript-client stack /path/to/pom.xml --html
123124

124125
# get component analysis
125-
$ npx @trustification/exhort-javascript-api component /path/to/pom.xml
126+
$ npx @trustify-da/trustify-da-javascript-client component /path/to/pom.xml
126127
```
127128
</li>
128129

129130
<li>
130131
Use as Global Binary
131132

132133
```shell
133-
npm install --global @trustification/exhort-javascript-api
134+
npm install --global @trustify-da/trustify-da-javascript-client
134135
```
135136

136137
```shell
137138
# get stack analysis in json format
138-
$ exhort-javascript-api stack /path/to/pom.xml
139+
$ trustify-da-javascript-client stack /path/to/pom.xml
139140

140141
# get stack analysis in json format (summary only)
141-
$ exhort-javascript-api stack /path/to/pom.xml --summary
142+
$ trustify-da-javascript-client stack /path/to/pom.xml --summary
142143

143144
# get stack analysis in html format format
144-
$ exhort-javascript-api stack /path/to/pom.xml --html
145+
$ trustify-da-javascript-client stack /path/to/pom.xml --html
145146

146147
# get component analysis
147-
$ exhort-javascript-api component /path/to/pom.xml
148+
$ trustify-da-javascript-client component /path/to/pom.xml
148149
```
149150
</li>
150151
</ul>
@@ -206,7 +207,7 @@ Excluding a package from any analysis can be achieved by marking the package for
206207

207208
<em>Golang</em> users can add in go.mod a comment with //exhortignore next to the package to be ignored, or to "piggyback" on existing comment ( e.g - //indirect) , for example:
208209
```go
209-
module github.com/trustification/SaaSi/deployer
210+
module github.com/trustify-da/SaaSi/deployer
210211

211212
go 1.19
212213

@@ -295,7 +296,7 @@ for various customization.
295296
However, <em>ESM Module</em> users, can opt for customizing programmatically:
296297

297298
```javascript
298-
import exhort from '@trustification/exhort-javascript-api'
299+
import exhort from '@trustify-da/trustify-da-javascript-client'
299300
import fs from 'node:fs'
300301

301302
let options = {
@@ -446,18 +447,18 @@ Two possible values for this setting:
446447

447448
#### Golang Support
448449

449-
By default, Golang dependency resolution follows the [Minimal Version Selection (MVS) Algorithm](https://go.dev/ref/mod#minimal-version-selection).
450+
By default, Golang dependency resolution follows the [Minimal Version Selection (MVS) Algorithm](https://go.dev/ref/mod#minimal-version-selection).
450451
This means that when analyzing a project, only the module versions that would actually be included in the final executable are considered.
451452

452453
For example, if your `go.mod` file declares two modules, `a` and `b`, and both depend on the same package `c` (same major version `v1`) but with different minor versions:
453454

454455
- `namespace/c/[email protected]`
455456
- `namespace/c/[email protected]`
456457

457-
Only one of these versions — the minimal version selected by MVS — will be included in the generated SBOM and analysis results.
458+
Only one of these versions — the minimal version selected by MVS — will be included in the generated SBOM and analysis results.
458459
This mirrors the behavior of a real Go build, where only one minor version of a given major version can be present in the executable (since Go treats packages with the same name and major version as identical).
459460

460-
The MVS-based resolution is **enabled by default**.
461+
The MVS-based resolution is **enabled by default**.
461462
If you want to disable this behavior and instead include **all transitive module versions** (as listed in `go.mod` dependencies), set the system property or environment variable:
462463

463464
```bash
@@ -499,8 +500,8 @@ For some ecosystems we support passing additional CLI arguments to the underlyin
499500

500501

501502
<!-- Badge links -->
502-
[0]: https://img.shields.io/github/v/release/trustification/exhort-javascript-api?color=green&label=latest
503-
[1]: https://img.shields.io/github/v/release/trustification/exhort-javascript-api?color=yellow&include_prereleases&label=early-access
503+
[0]: https://img.shields.io/github/v/release/guacsec/trustify-da-javascript-client?color=green&label=latest
504+
[1]: https://img.shields.io/github/v/release/guacsec/trustify-da-javascript-client?color=yellow&include_prereleases&label=early-access
504505

505506
### Known Issues
506507

catalog-info.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ apiVersion: backstage.io/v1alpha1
22
kind: Component
33
metadata:
44
annotations:
5-
backstage.io/kubernetes-id: exhort-javascript-api
6-
github.com/project-slug: trustification/exhort-javascript-api
5+
backstage.io/kubernetes-id: trustify-da-javascript-client
6+
github.com/project-slug: guacsec/trustify-da-javascript-client
77
github.com/project-readme-path: README.md
8-
backstage.io/view-url: https://github.com/trustification/exhort-javascript-api/blob/main/catalog-info.yaml
9-
backstage.io/edit-url: https://github.com/trustification/exhort-javascript-api/blob/main/catalog-info.yaml
10-
backstage.io/source-location: url:https://github.com/trustification/exhort-javascript-api
8+
backstage.io/view-url: https://github.com/guacsec/trustify-da-javascript-client/blob/main/catalog-info.yaml
9+
backstage.io/edit-url: https://github.com/guacsec/trustify-da-javascript-client/blob/main/catalog-info.yaml
10+
backstage.io/source-location: url:https://github.com/guacsec/trustify-da-javascript-client
1111
rhda/manifest-file-path: package.json
1212
backstage.io/techdocs-ref: dir:README.md
13-
name: exhort-javascript-api
13+
name: trustify-da-javascript-client
1414
spec:
1515
lifecycle: production
1616
owner: ecosystem-appeng

docker-image/Dockerfiles/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ COPY configs/.npmrc .
2828
# replace placeholder with the actual environment variable
2929
RUN sed -i "s/__PACKAGE_REGISTRY_ACCESS_TOKEN__/${PACKAGE_REGISTRY_ACCESS_TOKEN}/g" ./.npmrc
3030
# install Exhort javascript API
31-
RUN npm install --global @trustification/exhort-javascript-api@${EXHORT_JAVASCRIPT_API_VERSION}
31+
RUN npm install --global @trustify-da/trustify-da-javascript-client@${EXHORT_JAVASCRIPT_API_VERSION}
3232

3333
# add RHDA script
3434
COPY scripts/rhda.sh /rhda.sh
@@ -38,7 +38,7 @@ RUN chmod +x /usr/jdk-21.0.1/bin/java \
3838
&& chmod +x /usr/apache-maven-3.9.6/bin/mvn \
3939
&& chmod +x /usr/go/bin/go \
4040
&& chmod +x /usr/bin/jq \
41-
&& chmod +x /opt/app-root/src/.npm-global/bin/exhort-javascript-api \
41+
&& chmod +x /opt/app-root/src/.npm-global/bin/trustify-da-javascript-client \
4242
&& chmod +x /rhda.sh
4343

4444
# use default user
@@ -47,7 +47,7 @@ USER default
4747
# second stage
4848
FROM registry.access.redhat.com/ubi9/nodejs-20-minimal
4949

50-
LABEL org.opencontainers.image.source=https://github.com/trustification/exhort-javascript-api
50+
LABEL org.opencontainers.image.source=https://github.com/guacsec/trustify-da-javascript-client
5151

5252
# assign rhda source for exhort tracking purposes
5353
ENV RHDA_SOURCE=''
@@ -76,7 +76,7 @@ ENV PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin:$GOLANG_HOME/bin
7676
# Copy jq executable from the builder stage
7777
COPY --from=builder /usr/bin/jq /usr/bin/jq
7878

79-
# Copy exhort-javascript-api executable from the builder stage
79+
# Copy trustify-da-javascript-client executable from the builder stage
8080
COPY --from=builder /opt/app-root/src/.npm-global/ /opt/app-root/src/.npm-global/
8181

8282
# Copy RHDA executable script from the builder stage

docker-image/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Exhort Javascript API Docker Images
22

3-
These dockerfiles provides all nessesary components to generate images for Red Hat Dependency Analytics (RHDA).
3+
These dockerfiles provides all nessesary components to generate images for Red Hat Dependency Analytics (RHDA).
44
These images can be used as base images to set up the necessary environment and dependencies for running the Red Hat Dependency Analytics.
55

66
## Prerequisites
@@ -13,9 +13,9 @@ Both Docker and Podman are container runtimes that can be used to build and run
1313

1414
## Images generated for Exhort Javascript API
1515

16-
Ecosystem | Version | IMAGE | TAG |
16+
Ecosystem | Version | IMAGE | TAG |
1717
------------------------------| ------------------------------------------------------------------ | ----------------------------------------------- |-------------------|
18-
Maven, NPM, Golang | mvn 3.9.6, <br>npm 10.2.4, <br>go 1.21.5, <br>python \<any\> | quay.io/ecosystem-appeng/exhort-javascript-api | 0.1.1-ea.26 |
18+
Maven, NPM, Golang | mvn 3.9.6, <br>npm 10.2.4, <br>go 1.21.5, <br>python \<any\> | quay.io/ecosystem-appeng/trustify-da-javascript-client | 0.1.1-ea.26 |
1919

2020

2121
## Usage Notes
@@ -26,14 +26,14 @@ Code example:
2626
# Install requirements.txt
2727
pip3 install -r requirements.txt
2828

29-
# Generate pip freeze --all data
29+
# Generate pip freeze --all data
3030
pip3 freeze --all > pip_freeze.txt
3131

32-
# Generate pip show data
32+
# Generate pip show data
3333
SHOW_LIST=$(awk -F '==' '{print $1}' < pip_freeze.txt)
3434
pip3 show $(echo "$SHOW_LIST") > pip_show.txt
3535

3636
# Encode data using base64 and export to environment variables
3737
export EXHORT_PIP_FREEZE=$(cat pip_freeze.txt | base64 -w 0)
3838
export EXHORT_PIP_SHOW=$(cat pip_show.txt | base64 -w 0)
39-
```
39+
```

0 commit comments

Comments
 (0)