Skip to content

Commit c76bfa9

Browse files
Remove base reference and ref parameters from CodeQL analysis commands in workflow files
1 parent 586da5a commit c76bfa9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.github/workflows/test-code-scanning-only-changed-projects.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ jobs:
3939
--monorepo \
4040
--upload-sarif \
4141
--only-changed-files \
42-
--base-ref origin/"$GITHUB_BASE_REF" \
43-
--ref "$GITHUB_REF" \
4442
--max-workers 1
4543
4644

harness/codeql_analysis_pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pipeline:
4646
GITHUB_TOKEN: <+secrets.getValue("PAT")>
4747
command: |
4848
curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user
49-
codeql-wrapper --verbose analyze ./monorepo --monorepo --upload-sarif --only-changed-files --base-ref "origin/<+codebase.targetBranch>" --ref="refs/pull/<+codebase.prNumber>/merge" --max-workers 1
49+
codeql-wrapper --verbose analyze ./monorepo --monorepo --upload-sarif --only-changed-files --max-workers 1
5050
platform:
5151
os: Linux
5252
arch: Amd64

0 commit comments

Comments
 (0)