diff --git a/.github/workflows/update-xeol-release.yml b/.github/workflows/update-xeol-release.yml index b2734e6..e45e50a 100644 --- a/.github/workflows/update-xeol-release.yml +++ b/.github/workflows/update-xeol-release.yml @@ -10,11 +10,11 @@ on: jobs: upgrade-xeol: runs-on: ubuntu-latest - if: github.repository == 'noqcks/xeol-action' + if: github.repository == 'xeol-io/xeol-action' steps: - uses: actions/checkout@v3 - run: | - LATEST_VERSION=$(curl "https://api.github.com/repos/noqcks/xeol/releases/latest" 2>/dev/null | jq -r '.tag_name') + LATEST_VERSION=$(curl "https://api.github.com/repos/xeol-io/xeol/releases/latest" 2>/dev/null | jq -r '.tag_name') echo "exports.XEOL_VERSION = \"$LATEST_VERSION\";" > XeolVersion.js npm install npm run build diff --git a/LICENSE b/LICENSE index 6bc9f26..4b52116 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 noqcks +Copyright (c) 2023 Xeol Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 89a48b0..d680bbc 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ # GitHub Action for End-of-Life (EOL) Scanning [![Test Status][test-img]][test] -[![GitHub release](https://img.shields.io/github/release/noqcks/xeol-action.svg)](https://github.com/noqcks/xeol-action/releases/latest) -[![License: MIT](https://img.shields.io/github/license/noqcks/xeol-action)](https://img.shields.io/github/license/noqcks/xeol-action) +[![GitHub release](https://img.shields.io/github/release/xeol-io/xeol-action.svg)](https://github.com/xeol-io/xeol-action/releases/latest) +[![License: MIT](https://img.shields.io/github/license/xeol-io/xeol-action)](https://img.shields.io/github/license/xeol-io/xeol-action) :zap: _Find End-of-life (EOL) software in files or containers at lightning speed_ :zap: ![image](https://user-images.githubusercontent.com/4740147/215561344-5c5bba89-c4a4-4c72-ad71-58c48d5e41d6.png) -This is a GitHub Action for invoking the [Xeol](https://github.com/noqcks/xeol) scanner and returning the end-of-life (EOL) packages, +This is a GitHub Action for invoking the [Xeol](https://github.com/xeol-io/xeol) scanner and returning the end-of-life (EOL) packages, and fail if an out-of-date package is found. Use this in your workflows to quickly verify files or containers' content after a build and before pushing, allowing PRs, or deploying updates. @@ -52,7 +52,7 @@ The simplest workflow for scanning a `localbuild/testimage` container: load: true - name: Scan image - uses: noqcks/xeol-action@v1.0.6 + uses: xeol-io/xeol-action@v1.0.6 with: image: "localbuild/testimage:latest" ``` @@ -63,7 +63,7 @@ To scan a directory, add the following step: ```yaml - name: Scan current project - uses: noqcks/xeol-action@v1.0.6 + uses: xeol-io/xeol-action@v1.0.6 with: path: "." ``` @@ -82,7 +82,7 @@ Use the `sbom` key to scan an SBOM file: output-file: "${{ github.event.repository.name }}-sbom.spdx.json" - name: Scan SBOM - uses: noqcks/xeol-action@v1.0.6 + uses: xeol-io/xeol-action@v1.0.6 with: sbom: "${{ github.event.repository.name }}-sbom.spdx.json" ``` @@ -95,7 +95,7 @@ You change the `fail-build` field to `false` to avoid failing the build in the c ```yaml - name: Scan image - uses: noqcks/xeol-action@v1.0.6 + uses: xeol-io/xeol-action@v1.0.6 with: image: "localbuild/testimage:latest" fail-build: false @@ -136,13 +136,13 @@ jobs: - uses: actions/checkout@v2 - name: Build the container image run: docker build . --file Dockerfile --tag localbuild/testimage:latest - - uses: noqcks/xeol-action@v1.0.6 + - uses: xeol-io/xeol-action@v1.0.6 with: image: "localbuild/testimage:latest" fail-build: true ``` -## noqcks/xeol-action/download-xeol +## xeol-io/xeol-action/download-xeol A sub-action to [download Xeol](download-xeol/action.yml). @@ -156,7 +156,7 @@ Output parameters: | Parameter | Description | | --------- | -------------------------------------------------------------------- | -| `cmd` | a reference to the [Xeol](https://github.com/noqcks/xeol) binary. | +| `cmd` | a reference to the [Xeol](https://github.com/xeol-io/xeol) binary. | `cmd` can be referenced in a workflow like other output parameters: `${{ steps..outputs.cmd }}` @@ -164,23 +164,23 @@ Output parameters: Example usage: ```yaml -- uses: noqcks/xeol-action/download-xeol@v3 +- uses: xeol-io/xeol-action/download-xeol@v3 id: xeol - run: ${{steps.xeol.outputs.cmd}} dir:. ``` ## Contributing -We love contributions, feedback, and bug reports. For issues with the invocation of this action, file [issues](https://github.com/noqcks/xeol-action/issues) in this repository. +We love contributions, feedback, and bug reports. For issues with the invocation of this action, file [issues](https://github.com/xeol-io/xeol-action/issues) in this repository. For contributing, see [Contributing](CONTRIBUTING.md). ## More Information -For documentation on Xeol itself, including other output capabilities, see the [xeol project](https://github.com/noqcks/xeol) +For documentation on Xeol itself, including other output capabilities, see the [xeol project](https://github.com/xeol-io/xeol) -[test]: https://github.com/noqcks/xeol-action -[test-img]: https://github.com/noqcks/xeol-action/workflows/Tests/badge.svg +[test]: https://github.com/xeol-io/xeol-action +[test-img]: https://github.com/xeol-io/xeol-action/workflows/Tests/badge.svg ## Diagnostics diff --git a/dist/index.js b/dist/index.js index f046ea8..359d4ec 100644 --- a/dist/index.js +++ b/dist/index.js @@ -23,7 +23,7 @@ const xeolBinary = "xeol"; const xeolVersion = core.getInput("xeol-version") || XEOL_VERSION; async function downloadXeol(version) { - let url = `https://raw.githubusercontent.com/noqcks/xeol/main/install.sh`; + let url = `https://raw.githubusercontent.com/xeol-io/xeol/main/install.sh`; core.debug(`Installing ${version}`); @@ -825,8 +825,8 @@ class OidcClient { const res = yield httpclient .getJson(id_token_url) .catch(error => { - throw new Error(`Failed to get ID Token. \n - Error Code : ${error.statusCode}\n + throw new Error(`Failed to get ID Token. \n + Error Code : ${error.statusCode}\n Error Message: ${error.result.message}`); }); const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; @@ -6932,7 +6932,7 @@ module.exports = require("util"); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; -/******/ +/******/ /******/ // The require function /******/ function __nccwpck_require__(moduleId) { /******/ // Check if module is in cache @@ -6946,7 +6946,7 @@ module.exports = require("util"); /******/ // no module.loaded needed /******/ exports: {} /******/ }; -/******/ +/******/ /******/ // Execute the module function /******/ var threw = true; /******/ try { @@ -6955,23 +6955,23 @@ module.exports = require("util"); /******/ } finally { /******/ if(threw) delete __webpack_module_cache__[moduleId]; /******/ } -/******/ +/******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } -/******/ +/******/ /************************************************************************/ /******/ /* webpack/runtime/compat */ -/******/ +/******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ +/******/ /************************************************************************/ -/******/ +/******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __nccwpck_require__(2932); /******/ module.exports = __webpack_exports__; -/******/ +/******/ /******/ })() -; \ No newline at end of file +; diff --git a/download-xeol/action.yml b/download-xeol/action.yml index 7cf4f3f..ecb7b93 100644 --- a/download-xeol/action.yml +++ b/download-xeol/action.yml @@ -1,5 +1,5 @@ name: "Download Xeol" -author: "noqcks" +author: "xeol-io" description: "Downloads the Xeol binary and provides a path to execute it" branding: color: blue diff --git a/index.js b/index.js index 56e55e4..c4b8c1f 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ const xeolBinary = "xeol"; const xeolVersion = core.getInput("xeol-version") || XEOL_VERSION; async function downloadXeol(version) { - let url = `https://raw.githubusercontent.com/noqcks/xeol/main/install.sh`; + let url = `https://raw.githubusercontent.com/xeol-io/xeol/main/install.sh`; core.debug(`Installing ${version}`); diff --git a/package.json b/package.json index f68429b..49a34ac 100644 --- a/package.json +++ b/package.json @@ -20,18 +20,18 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/noqcks/xeol-action.git" + "url": "git+https://github.com/xeol-io/xeol-action.git" }, "keywords": [ "image", "scanning" ], - "author": "noqcks", + "author": "xeol-io", "license": "MIT", "bugs": { - "url": "https://github.com/noqcks/xeol-action/issues" + "url": "https://github.com/xeol-io/xeol-action/issues" }, - "homepage": "https://github.com/noqcks/xeol-action#readme", + "homepage": "https://github.com/xeol-io/xeol-action#readme", "dependencies": { "@actions/core": "^1.10.0", "@actions/exec": "^1.1.1",