source/plugins/licenses/README.md
</td>
Use to plugin_licenses_setup command to setup project dependencies.
Example: setup a NodeJS project using npm ci
- name: Licenses and permissions
with:
repo: metrics
plugin_licenses: yes
plugin_licenses_setup: npm ci
Dependencies will be analyzed by GitHub licensed and compared against GitHub known licenses.
⚠️ This is NOT legal advice, use at your own risk
💣 This plugin SHOULD NOT be enabled on web instances, since it allows raw command injection. This could result in compromised server!
<b>default:</b> no
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_licenses_setup</code></h4></td> <td rowspan="2"><p>Setup command</p> <blockquote> <p>ℹ️ Depending on the project, this may not be required. The example command is intended for NodeJs projects that use <code>npm</code> to install their dependencies.</p> </blockquote> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>string</code> </td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_licenses_ratio</code></h4></td> <td rowspan="2"><p>Used licenses ratio</p> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>boolean</code><b>default:</b> no
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_licenses_legal</code></h4></td> <td rowspan="2"><p>Permissions, limitations and conditions about used licenses</p> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>boolean</code><b>default:</b> yes
</td> </tr> </table> <!--/options-->name: Licenses and permissions
with:
filename: metrics.plugin.licenses.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
template: repository
repo: metrics
plugin_licenses: yes
plugin_licenses_setup: bash -c '[[ -f package.json ]] && npm ci || true'
name: Licenses with open-source ratio graphs
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.licenses.ratio.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
template: repository
repo: metrics
plugin_licenses: yes
plugin_licenses_setup: bash -c '[[ -f package.json ]] && npm ci || true'
plugin_licenses_legal: no
plugin_licenses_ratio: yes