Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
habitat-action
Advanced tools
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.