Skip to content

Commit

Permalink
Use CodeQL3000 tasks in OneBranch pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatam committed Aug 16, 2023
1 parent 73e8e13 commit ad9718e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 27 deletions.
27 changes: 0 additions & 27 deletions .pipelines/ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
# Azure DevOps Pipeline running CI
#
# Note: This pipeline uses a secret variable "github_codeql_upload_token".
# This is a GitHub Personal Access Token (Classic) owned by mbarnes.
# It has no expiration and only has the "security_events" scope for
# the purpose of uploading CodeQL results.
#
# However, for this secret to be available to pull requests from
# forked ARO-RP repositories, the pipeline option "Make secrets
# available to builds of forks" is enabled.
#
# More information:
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/github#contributions-from-forks
#
trigger:
branches:
include:
Expand Down Expand Up @@ -44,20 +31,6 @@ variables:
- template: vars.yml

jobs:
- job: Golang_CodeQL
pool:
name: 1es-aro-ci-pool
variables:
HOME: $(Agent.BuildDirectory)
steps:
- template: ./templates/template-checkout.yml
- template: ./templates/template-codeql.yml
parameters:
language: go
target: golang
github_token: $(github_codeql_upload_token)
timeoutInMinutes: 120

- job: Python_Unit_Tests
pool:
name: 1es-aro-ci-pool
Expand Down
1 change: 1 addition & 0 deletions .pipelines/onebranch/pipeline.buildrp.official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ variables:
ONEBRANCH_AME_ACR_LOGIN: cdpxb8e9ef87cd634085ab141c637806568c00.azurecr.io
LinuxContainerImage: $(ONEBRANCH_AME_ACR_LOGIN)/b8e9ef87-cd63-4085-ab14-1c637806568c/official/ubi8/go-toolset:1.18.4 # Docker image which is used to build the project https://aka.ms/obpipelines/containers
Debian_Frontend: noninteractive
Codeql.Enabled: true

resources:
repositories:
Expand Down
4 changes: 4 additions & 0 deletions .pipelines/onebranch/templates/template-buildrp-buildaro.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
steps:
- task: CodeQL3000Init@0
displayName: 'Initialize CodeQL'
- task: Bash@3
displayName: ⚙️ Make ARO
inputs:
Expand Down Expand Up @@ -37,3 +39,5 @@ steps:
export GOPATH=$(Agent.TempDirectory)
make validate-fips
workingDirectory: $(Agent.TempDirectory)/src/github.com/Azure/ARO-RP
- task: CodeQL3000Finalize@0
displayName: 'Finalize CodeQL'

0 comments on commit ad9718e

Please sign in to comment.