https://github.com/adoptium/temurin-cpe-generator
A tool to generate NIST CPE directory entries for Eclipse Temurin using the Adoptium API.
https://github.com/adoptium/temurin-cpe-generator
Last synced: 5 months ago
JSON representation
A tool to generate NIST CPE directory entries for Eclipse Temurin using the Adoptium API.
- Host: GitHub
- URL: https://github.com/adoptium/temurin-cpe-generator
- Owner: adoptium
- Created: 2023-09-06T15:52:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-23T05:33:42.000Z (about 2 years ago)
- Last Synced: 2024-05-23T06:26:54.281Z (about 2 years ago)
- Language: JavaScript
- Homepage: https://adoptium.net/temurin
- Size: 30.3 KB
- Stars: 1
- Watchers: 12
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Temurin CPE Generator
A tool to generate a CPE (Common Platform Enumeration) directory entries for Eclipse Temurin using the Adoptium API.
## Overview
This tool adheres to the NIST CPE design specification, keeping it simple and in a format that can be easily generated by scripts. The goal is to represent each Temurin release product. The specification for these entries can be found [here](./SPECIFICATION.md).
## Prerequisites
- Node.js (Version 18 or higher recommended)
## Installation
1. Clone the repository:
```bash
git clone https://github.com/adoptium/temurin-cpe-generator
cd temurin-cpe-generator
```
1. Install the dependencies
```bash
npm install
```
## Usage
1. To fetch all the GA releases and generate the CPE directory:
```bash
node generator.js
```
1. The output will be an XML format representation, which you can save or further process as needed.
## Features
- Fetches all GA releases from the Adoptium API with pagination support.
- Generates CPE items in the required XML format.
## Implementation Notes
- The title is derived as "Eclipse Temurin" followed by a substring of the release name.
- For JDK8, the version is static "1.8.0", and the update field uses the release name after "jdk8u".