This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pixels = ['r','g','b','a','r','g','b','a','r','g','b','a']; | |
const propMap = ['r', 'g', 'b', 'a']; | |
const rgbas = pixels.reduce((acc, curr, i) => { | |
const mod = i%4; | |
switch (mod) { | |
case 0: | |
return [...acc, {r: curr}]; | |
default: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// action yml file | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/node@master | |
with: | |
args: --severity-threshold=medium --policy-path=.snyk | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
// .snyk | |
ignore: |