Skip to content

Commit

Permalink
Add Fingerprint action
Browse files Browse the repository at this point in the history
Add E2E test of action files
  • Loading branch information
sweoggy committed May 27, 2024
1 parent 000cc02 commit 4ed79ce
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/E2E-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: E2E test

on:
push:
branches:
- main
pull_request:

env:
DEBRICKED_TOKEN: ${{ secrets.DEBRICKED_TOKEN }}

jobs:
E2E-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: E2E test main action file
uses: ./
- name: E2E test scan non-docker action file
uses: ./scan-non-docker
- name: E2E test fingerprint action file
uses: ./fingerprint
- name: E2E test fingerprint non-docker action file
uses: ./fingerprint-non-docker
- name: E2E test callgraph action file
uses: ./callgraph
- name: E2E test callgraph non-docker action file
uses: ./callgraph-non-docker
- name: E2E test resolve action file
uses: ./resolve
- name: E2E test resolve non-docker action file
uses: ./resolve-non-docker
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
node_modules
13 changes: 13 additions & 0 deletions docker-fingerprint/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Debricked Fingerprint
author: Debricked
description: Generates a debricked.fingerprints.txt containing fingerprints of files to be used to detect Open Source dependencies not included in manifest files.
runs:
using: docker
image: docker://debricked/cli:1-resolution-debian
args:
- debricked
- fingerprint
- .
branding:
color: purple
icon: search
14 changes: 14 additions & 0 deletions fingerprint-non-docker/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Debricked Fingerprint
author: Debricked
description: Generates a debricked.fingerprints.txt containing fingerprints of files to be used to detect Open Source dependencies not included in manifest files.
runs:
using: composite
steps:
- name: Install Debricked CLI
uses: debricked/actions/non-docker@v3
- name: Debricked Fingerprint
run: ./debricked fingerprint
shell: bash
branding:
color: purple
icon: search
11 changes: 11 additions & 0 deletions fingerprint/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Debricked Fingerprint
author: Debricked
description: Generates a debricked.fingerprints.txt containing fingerprints of files to be used to detect Open Source dependencies not included in manifest files.
runs:
using: composite
steps:
- uses: debricked/actions/cache@v3
- uses: debricked/actions/docker-fingerprint@v3
branding:
color: purple
icon: search
5 changes: 5 additions & 0 deletions test-files/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"lodash": "4.17.21"
}
}

0 comments on commit 4ed79ce

Please sign in to comment.