name: "CodeQLstaticanalysis"on:push:pull_request:schedule:- cron: '313**1' # Monday at 3h31 UTCjobs:skip_duplicates:continue-on-error: trueruns-on: ubuntu-24.04outputs:should_skip: ${{ steps.skip_check.outputs.should_skip }}steps:- id: skip_check# pin to unreleased SHA so we can use 'same_content_newer'# see https://github.com/fkirc/skip-duplicate-actions/pull/112uses: fkirc/skip-duplicate-actions@v5with:concurrent_skipping: 'same_content_newer'skip_after_successful_duplicate: 'true'paths_ignore: '["doc/**","**/*.md",".gitignore","libxcrypt.spec.rpkg",".packit.yaml","rpkg.macros","AUTHORS","ChangeLog","COPYING.LIB","LICENSING","NEWS","README","THANKS","TODO"]'do_not_skip: '["workflow_dispatch","schedule"]'CodeQL:needs: skip_duplicatesif: ${{ needs.skip_duplicates.outputs.should_skip != 'true' }}runs-on: ubuntu-24.04permissions:actions: readcontents: readsecurity-events: writesteps:- name: Checkout repositoryuses: actions/checkout@v4- name: Install packagesrun: sudo apt-get install libltdl-dev- name: Initialize CodeQLuses: github/codeql-action/init@v2with:# CodeQL lumps C with C++. Perl is not currently supported.languages: cpp, python# If you wish to specify custom queries, you can do so here or in a# config file. By default, queries listed here will override any# specified in a config file. Prefix the list here with "+" to use# these queries and those in the config file.#queries:# - ./path/to/local/query# - your-org/your-repo/queries@main- name: Versions of build toolsid: build-toolsrun: ./build-aux/ci/ci-log-dependency-versions- name: Get nprocsrun: echo "NPROCS=$((`nproc --all 2>/dev/null || sysctl -n hw.ncpu` * 2))" | tee $GITHUB_ENV- name: Cache bootstrapid: cacheuses: actions/cache@v4with:path: |INSTALLMakefile.inaclocal.m4config.h.inconfigureautom4te.cache/**build-aux/m4/libtool.m4build-aux/m4/ltoptions.m4build-aux/m4/ltsugar.m4build-aux/m4/ltversion.m4build-aux/m4/lt~obsolete.m4build-aux/m4-autogen/**key: autoreconf-${{ steps.build-tools.outputs.autotools-ver }}-${{ hashFiles('autogen.sh', 'configure.ac', 'Makefile.am', 'build-aux/m4/*.m4', 'build-aux/m4-autogen/**') }}- name: Bootstrapif: steps.cache.outputs.cache-hit != 'true'run: ./autogen.sh- name: Configurerun: ./configure --enable-obsolete-api --enable-hashes=all- name: Buildrun: |make -j${{ env.NPROCS }} allmake -j${{ env.NPROCS }} test-programs- name: Perform CodeQL Analysisuses: github/codeql-action/analyze@v2- name: Detailed error logsif: failure()run: ./build-aux/ci/ci-log-logfiles
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。