Skip to content

Commit c78f4b6

Browse files
fix path and plugin
1 parent 8c1daea commit c78f4b6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/security-scan.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,15 @@ jobs:
3535
if: ${{ (github.repository != 'hashicorp/nomad' || (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name))
3636
&& (github.actor != 'dependabot[bot]') && (github.actor != 'hc-github-team-nomad-core') }}
3737

38+
permissions:
39+
contents: read
40+
actions: read
41+
security-events: write
42+
3843
steps:
3944
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
45+
with:
46+
path: code
4047
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
4148
with:
4249
python-version: 3.x
@@ -63,7 +70,8 @@ jobs:
6370
id: scan
6471
uses: ./security-scanner
6572
with:
66-
repository: "$PWD"
73+
repository: "code"
74+
plugins: "codeql semgrep"
6775
env:
6876
SECURITY_SCANNER_CONFIG_FILE: .github/scan.hcl
6977
# See scan.hcl at repository .github location for config.

0 commit comments

Comments
 (0)