Skip to content

[Snyk] Security upgrade axios from 0.21.1 to 1.6.4 #43

[Snyk] Security upgrade axios from 0.21.1 to 1.6.4

[Snyk] Security upgrade axios from 0.21.1 to 1.6.4 #43

Workflow file for this run

name: bundle app
on:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master
jobs:
cancel-previous:
runs-on: ubuntu-16.04
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
bundle-macos:
runs-on: macos-latest
needs: cancel-previous
steps:
- uses: ledgerhq/actions/[email protected]
with:
username: ${{ github.actor }}
ban: ledgerlive
if: github.event_name == 'pull_request'
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{github.event.pull_request.head.repo.full_name}}
persist-credentials: false
- uses: actions/setup-node@main
with:
node-version: 12.x
- name: set git user
run: |
git config user.email "[email protected]"
git config user.name "Team Live"
- name: get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: install dependencies
run: yarn --ignore-scripts --frozen-lockfile
- uses: ledgerhq/actions/[email protected]
id: version
- name: set beta name
uses: ./.github/actions/change-product-name
- name: make local version pr
if: github.event_name == 'pull_request'
env:
VERSION: ${{ steps.version.outputs.clean }}-sha.${{ github.event.pull_request.head.sha }}
run: yarn version --new-version="$VERSION"
- name: make local version push
if: github.event_name == 'push'
env:
VERSION: ${{ steps.version.outputs.clean }}-sha.${{ github.sha }}
run: yarn version --new-version="$VERSION"
- name: build the app
run: yarn nightly
- uses: ledgerhq/actions/[email protected]
id: post-version
- name: upload macOS app
uses: actions/upload-artifact@v1
with:
name: ${{ steps.post-version.outputs.version }}-mac.dmg
path: dist/${{ steps.post-version.outputs.name }}-${{ steps.post-version.outputs.version }}-mac.dmg
bundle-linux:
runs-on: ubuntu-16.04
needs: cancel-previous
steps:
- uses: ledgerhq/actions/[email protected]
with:
username: ${{ github.actor }}
ban: ledgerlive
if: github.event_name == 'pull_request'
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{github.event.pull_request.head.repo.full_name}}
persist-credentials: false
- uses: actions/setup-node@main
with:
node-version: 12.x
- name: set git user
run: |
git config user.email "[email protected]"
git config user.name "Team Live"
- name: install linux dependencies
run: sudo apt-get update && sudo apt-get install libudev-dev libusb-1.0-0-dev
- name: get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: install dependencies
run: yarn --ignore-scripts --frozen-lockfile
- uses: ledgerhq/actions/[email protected]
id: version
- name: set beta name
uses: ./.github/actions/change-product-name
- name: make local version pr
if: github.event_name == 'pull_request'
env:
VERSION: ${{ steps.version.outputs.clean }}-sha.${{ github.event.pull_request.head.sha }}
run: yarn version --new-version="$VERSION"
- name: make local version push
if: github.event_name == 'push'
env:
VERSION: ${{ steps.version.outputs.clean }}-sha.${{ github.sha }}
run: yarn version --new-version="$VERSION"
- name: build the app
run: yarn nightly
- uses: ledgerhq/actions/[email protected]
id: post-version
- name: upload linux app
uses: actions/upload-artifact@v1
with:
name: ${{ steps.post-version.outputs.version }}-linux-x86_64.AppImage
path: dist/${{ steps.post-version.outputs.name }}-${{ steps.post-version.outputs.version }}-linux-x86_64.AppImage
bundle-windows:
runs-on: windows-latest
needs: cancel-previous
steps:
- uses: ledgerhq/actions/[email protected]
with:
username: ${{ github.actor }}
ban: ledgerlive
if: github.event_name == 'pull_request'
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{github.event.pull_request.head.repo.full_name}}
persist-credentials: false
- uses: actions/setup-node@main
with:
node-version: 12.x
- uses: actions/setup-python@v1
with:
python-version: "2.7.x"
- name: set git user
run: |
git config user.email "[email protected]"
git config user.name "Team Live"
- name: get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: install dependencies
run: yarn --ignore-scripts --frozen-lockfile
- uses: ledgerhq/actions/[email protected]
id: version
- name: set beta name
uses: ./.github/actions/change-product-name
- name: make local version pr
id: postversion1
if: github.event_name == 'pull_request'
run: echo "::set-output name=content::${{ steps.version.outputs.clean }}-sha.${{ github.event.pull_request.head.sha }}"
- name: make local version push
id: postversion2
if: github.event_name == 'push'
run: echo "::set-output name=content::${{ steps.version.outputs.clean }}-sha.${{ github.sha }}"
- name: build the app
run: yarn nightly
- name: upload windows
uses: actions/upload-artifact@v1
with:
name: ${{ steps.postversion1.outputs.content }}${{ steps.postversion2.outputs.content }}-win.exe
path: dist/${{ steps.version.outputs.name }}-${{ steps.version.outputs.version }}-win.exe