Skip to content

Commit

Permalink
Add dedicated 'codeql' ADO pipeline to run old codeql check
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatam committed Aug 16, 2023
1 parent ad9718e commit bca1138
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .pipelines/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# 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:
- master
paths:
exclude:
- docs/*
tags:
include:
- v2*

pr:
branches:
include:
- master
paths:
exclude:
- docs/*

resources:
containers:
- container: golang
image: registry.access.redhat.com/ubi8/go-toolset:1.18
options: --user=0

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

0 comments on commit bca1138

Please sign in to comment.