Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
remove hardcoded env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
allgeo committed Apr 5, 2024
1 parent a23dad8 commit e2e438c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/contrast-sast-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
contrast-api-auth-token: ${{ secrets.CONTRAST__AUTH__TOKEN }}
contrast-api-resource-group: ${{ vars.CONTRAST_RESOURCE_GROUP }}
file-to-be-scanned: ${{ github.workspace }}
project-name: ${{ github.repository }}-scan

# - name: Upload SAST Scan Results
# uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ inputs:
project-name:
description: 'Project name for the scan'
required: true
default: 'testing-action-scan'
default: 'contrast-sast-scan'
file-to-be-scanned:
description: 'File or directory path of the codebase to scan'
required: false
Expand Down
3 changes: 1 addition & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export async function runSastScan(): Promise<void> {
const jfrogToken = core.getInput('jfrog-token')
// const contrastAgentVersion = core.getInput('contrast-api-agent-version')
const fileToBeScanned = core.getInput('file-to-be-scanned')
const githubRepository = process.env.GITHUB_REPOSITORY // e.g., "owner/repo"
const projectName = `${githubRepository}-scan` // e.g., "owner/repo-scan"
const projectName = core.getInput('project-name')
const userName = core.getInput('contrast-api-user-name')
const resourceGroup = core.getInput('contrast-api-resource-group')

Expand Down

0 comments on commit e2e438c

Please sign in to comment.