Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
fix: use var
Browse files Browse the repository at this point in the history
  • Loading branch information
Addon Factory template committed May 26, 2021
1 parent d7fa103 commit 7c2fe21
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
Expand Down
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/exec", {
"prepareCmd": 'yq -i eval ".runs.image = \"docker://ghcr.io/splunk/addonfactory-sample-scanner:${nextRelease.version}\"" action.yml'
"prepareCmd": 'yq -i eval ".runs.image = \"docker://ghcr.io/splunk/addonfactory-sample-scanner:v${nextRelease.version}\"" action.yml'
}],
["@semantic-release/git", {
"assets": ["action.yml"],
Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ description: "Detect potentially sensitive data in samples"
runs:
using: "docker"
image: "docker://ghcr.io/splunk/addonfactory-sample-scanner:v1.0.7"
env:
- INPUT_SCANDIR
inputs:
args:
description: Additional arguments to the scanner
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
echo ScanDir=$ScanDir
go-earlybird -show-solutions -suppress -config=/.go-earlybird/ -ignorefile=/.ge_ignore -path=${INPUT_PATH}/${INPUT_SCANDIR} ${INPUT_ARGS}
go-earlybird -show-solutions -suppress -config=/.go-earlybird/ -ignorefile=/.ge_ignore -path=/github/workspace/${INPUT_SCANDIR} ${INPUT_ARGS}

0 comments on commit 7c2fe21

Please sign in to comment.