Skip to content

Commit

Permalink
Merge pull request #53 from debricked/improve-non-docker-actions
Browse files Browse the repository at this point in the history
Lock non-docker to v1, just like for Docker
  • Loading branch information
sweoggy authored Apr 25, 2024
2 parents 3fb2c2e + 2bd7a40 commit 3a8441e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
3 changes: 1 addition & 2 deletions callgraph-non-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ runs:
using: composite
steps:
- name: Install Debricked CLI
run: curl -L https://github.com/debricked/cli/releases/latest/download/cli_linux_x86_64.tar.gz | tar -xz debricked
shell: bash
uses: debricked/actions/non-docker@v3
- name: Debricked Resolve
run: ./debricked callgraph
shell: bash
Expand Down
19 changes: 19 additions & 0 deletions non-docker/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Debricked CLI installation
author: Debricked
description: Installs the Debricked CLI
runs:
using: composite
steps:
- name: Install Debricked CLI
run: |
# Convert GitHub's RUNNER_ARCH naming convention to match the ones we use for releases
if [ "${RUNNER_ARCH}" == "X64" ]; then RUNNER_ARCH=x86_64; fi
if [ "${RUNNER_ARCH}" == "X86" ]; then RUNNER_ARCH=i386; fi
BIN_NAME=debricked
if [ "${RUNNER_OS}" == "Windows" ]; then BIN_NAME=debricked.exe; fi
echo "https://github.com/debricked/cli/releases/download/release-v1/cli_${RUNNER_OS}_${RUNNER_ARCH}.tar.gz"
curl -L "https://github.com/debricked/cli/releases/download/release-v1/cli_${RUNNER_OS}_${RUNNER_ARCH}.tar.gz" | tar -xz "${BIN_NAME}"
shell: bash
branding:
color: purple
icon: search
3 changes: 1 addition & 2 deletions resolve-non-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ runs:
using: composite
steps:
- name: Install Debricked CLI
run: curl -L https://github.com/debricked/cli/releases/latest/download/cli_linux_x86_64.tar.gz | tar -xz debricked
shell: bash
uses: debricked/actions/non-docker@v3
- name: Debricked Resolve
run: ./debricked resolve
shell: bash
Expand Down
3 changes: 1 addition & 2 deletions scan-non-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ runs:
using: composite
steps:
- name: Install Debricked CLI
run: curl -L https://github.com/debricked/cli/releases/latest/download/cli_linux_x86_64.tar.gz | tar -xz debricked
shell: bash
uses: debricked/actions/non-docker@v3
- name: Debricked Scan
run: ./debricked scan
shell: bash
Expand Down

0 comments on commit 3a8441e

Please sign in to comment.