Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
habitat-action
Advanced tools
A GitHub action that sets up your workflow runner to use Chef Habitat
A GitHub action that sets up your workflow runner to use Chef Habitat
name: Build with Chef Habitat
on:
push:
branches:
- master
jobs:
habitat-build:
runs-on: ubuntu-latest
steps:
- name: Initialize Chef Habitat artifacts cache directory
run: |
sudo mkdir -p /hab/cache/artifacts
sudo chown runner:docker -R /hab
- name: Cache Chef Habitat artifacts
uses: actions/cache@v1
with:
path: /hab/cache/artifacts
key: hab-cache-artifacts
- name: 'Initialize Chef Habitat environment'
uses: JarvusInnovations/habitat-action@action/v1
env:
HAB_LICENSE: accept
with:
deps: |
core/git
core/hab-studio
# supervisor: true
supervisor: |
core/mysql
emergence/php-runtime --bind="database:mysql.default"
emergence/nginx --bind="backend:php-runtime.default"
- run: hab pkg exec core/git git clone https://github.com/JarvusInnovations/habitat-compose
- run: hab origin key generate jarvus
- run: hab pkg build ./habitat-compose/
env:
HAB_ORIGIN: jarvus
# - name: Open tmate/tmux session for remote debug shell
# uses: mxschmitt/action-tmate@v1
First, install this action as a dependency and add the copied files to your versioned node_modules/
(GitHub actions requires this):
npm install --save JarvusInnovations/habitat-action#master
git add -f node_modules/ package.json package-lock.json
git commit -m "chore: add habitat-action to dependencies"
Then, in your action, you can do this:
async function run() {
try {
await require('habitat-action');
} catch (err) {
core.setFailed(`Failed to run habitat-action: ${err.message}`);
return;
}
// ...
try {
core.startGroup('Installing Jarvus Hologit');
await exec('hab pkg install jarvus/hologit');
} catch (err) {
core.setFailed(`Failed to install Jarvus Hologit: ${err.message}`);
return;
} finally {
core.endGroup();
}
// ...
}
FAQs
A GitHub action that sets up your workflow runner to use Chef Habitat
The npm package habitat-action receives a total of 4 weekly downloads. As such, habitat-action popularity was classified as not popular.
We found that habitat-action demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.