From 5c37943cc95b2475c5799406483fea28248d238a Mon Sep 17 00:00:00 2001 From: Di-Shi Sun Date: Mon, 11 Mar 2024 16:10:07 -0400 Subject: [PATCH] test --- .github/workflows/codeql-analysis.yml | 90 +++++++++++++-------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6abe6f3..300784d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -2,13 +2,13 @@ name: "CodeQL" on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] schedule: - - cron: '28 21 * * 6' + - cron: "28 21 * * 6" workflow_dispatch: - + jobs: analyze: name: Analyze @@ -16,55 +16,55 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'cpp' ] + language: ["cpp"] os: [centos7, rhel8] include: - - os: centos7 - container: 'centos:7' - - os: rhel8 - container: 'oraclelinux:8' + - os: centos7 + container: "centos:7" + - os: rhel8 + container: "oraclelinux:8" container: ${{ matrix.container }} steps: - - name: Checkout for centos7 - uses: actions/checkout@v3 - if: ${{ matrix.os == 'centos7' }} + - name: Checkout for centos7 + uses: actions/checkout@v3 + if: ${{ matrix.os == 'centos7' }} + + - name: Checkout for rhel8 + uses: actions/checkout@v4 + if: ${{ matrix.os == 'rhel8' }} - - name: Checkout for rhel8 - uses: actions/checkout@v4 - if: ${{ matrix.os == 'rhel8' }} + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL for centos7 + uses: github/codeql-action/init@v3 + if: ${{ matrix.os == 'centos7' }} + with: + queries: security-extended + languages: ${{ matrix.language }} - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL for centos7 - uses: github/codeql-action/init@v2 - if: ${{ matrix.os == 'centos7' }} - with: - queries: security-extended - languages: ${{ matrix.language }} + - name: Initialize CodeQL for rhel8 + uses: github/codeql-action/init@v3 + if: ${{ matrix.os == 'rhel8' }} + with: + queries: security-extended + languages: ${{ matrix.language }} - - name: Initialize CodeQL for rhel8 - uses: github/codeql-action/init@v3 - if: ${{ matrix.os == 'rhel8' }} - with: - queries: security-extended - languages: ${{ matrix.language }} + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl + - name: Build osptoolkit + run: | + yum install -y epel-release + yum install -y make gcc-c++ openssl-devel utf8proc-devel + cd $GITHUB_WORKSPACE/src + make build + cd $GITHUB_WORKSPACE/test + make linux - - name: Build osptoolkit - run: | - yum install -y epel-release - yum install -y make gcc-c++ openssl-devel utf8proc-devel - cd $GITHUB_WORKSPACE/src - make build - cd $GITHUB_WORKSPACE/test - make linux - - - name: Perform CodeQL Analysis for centos7 - uses: github/codeql-action/analyze@v2 - if: ${{ matrix.os == 'centos7' }} + - name: Perform CodeQL Analysis for centos7 + uses: github/codeql-action/analyze@v3 + if: ${{ matrix.os == 'centos7' }} - - name: Perform CodeQL Analysis for rhel8 - uses: github/codeql-action/analyze@v3 - if: ${{ matrix.os == 'rhel8' }} + - name: Perform CodeQL Analysis for rhel8 + uses: github/codeql-action/analyze@v3 + if: ${{ matrix.os == 'rhel8' }}