Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Oct 29, 2020
1 parent 28077e4 commit a209463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .ci/azure_pipelines/template-codeql-job.yml
@@ -1,8 +1,5 @@
# https://github.blog/2020-10-27-code-scanning-a-github-repository-using-github-advanced-security-within-an-azure-devops-pipeline/

parameters:
github_access_token: ''

jobs:
- job: CodeQL
pool:
Expand All @@ -24,9 +21,9 @@ jobs:
displayName: 'Get latest CodeQL package. Install on Agent.'
- script: |
./codeql-runner-linux init --repository $(Build.Repository.Name) --github-url https://github.com --github-auth ${{ parameters.github_access_token }}
./codeql-runner-linux init --repository $(Build.Repository.Name) --github-url https://github.com --github-auth $GITHUB_PAT
displayName: 'Initialize CodeQ Executable and create a CodeQL database'
- script: |
./codeql-runner-linux analyze --repository $(Build.Repository.Name) --github-url https://github.com --github-auth ${{ parameters.github_access_token }} --commit $(Build.SourceVersion) --ref $(Build.SourceBranch)
./codeql-runner-linux analyze --repository $(Build.Repository.Name) --github-url https://github.com --github-auth $GITHUB_PAT --commit $(Build.SourceVersion) --ref $(Build.SourceBranch)
displayName: 'Populate the CodeQL runner databases, analyze them, and upload the results to GitHub.'
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Expand Up @@ -130,10 +130,10 @@ stages:
- stage: CodeQL
dependsOn: Precheck
variables:
GITHUB_PAT: ${GITHUB_PAT}
GITHUB_PAT: $(GITHUB_PAT)
jobs:
- template: .ci/azure_pipelines/template-codeql-job.yml
# - stage: Publish
# - stage: Publish
# dependsOn:
# Test
# ConfigDisabledTest
Expand Down

0 comments on commit a209463

Please sign in to comment.