{"id":335,"date":"2022-08-04T13:19:42","date_gmt":"2022-08-04T05:19:42","guid":{"rendered":"https:\/\/www.tianjm.cn\/?p=335"},"modified":"2022-08-04T13:19:42","modified_gmt":"2022-08-04T05:19:42","slug":"github-framework-%e6%89%ab%e6%8f%8f%e5%8f%82%e6%95%b0%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.tianjm.cn\/?p=335","title":{"rendered":"Github framework \u626b\u63cf\u53c2\u6570\u914d\u7f6e"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code># For most projects, this workflow file will not need changing; you simply need\r\n# to commit it to your repository.\r\n#\r\n# You may wish to alter this file to override the set of languages analyzed,\r\n# or to provide custom queries or build logic.\r\n#\r\n# ******** NOTE ********\r\n# We have attempted to detect the languages in your repository. Please check\r\n# the `language` matrix defined below to confirm you have the correct set of\r\n# supported CodeQL languages.\r\n#\r\nname: \"dotnet\"\r\n\r\n# on:\r\n#   push:\r\n#     branches: &#91; \"master\" ]\r\n#   pull_request:\r\n#     # The branches below must be a subset of the branches above\r\n#     branches: &#91; \"master\" ]\r\n#   schedule:\r\n#     - cron: '25 3 * * 0'\r\n\r\non:\r\n  workflow_dispatch\r\n\r\njobs:\r\n  analyze:\r\n    name: Analyze\r\n    runs-on: windows-2019\r\n    permissions:\r\n      actions: read\r\n      contents: read\r\n      security-events: write\r\n\r\n    strategy:\r\n      fail-fast: false\r\n      matrix:\r\n        language: &#91; 'csharp' ]\r\n        # CodeQL supports &#91; 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]\r\n        # Learn more about CodeQL language support at https:\/\/aka.ms\/codeql-docs\/language-support\r\n\r\n    steps:\r\n    - name: Checkout repository\r\n      uses: actions\/checkout@v3\r\n\r\n    # Initializes the CodeQL tools for scanning.\r\n    - name: Initialize CodeQL\r\n      uses: github\/codeql-action\/init@v2\r\n      with:\r\n        languages: ${{ matrix.language }}\r\n        # If you wish to specify custom queries, you can do so here or in a config file.\r\n        # By default, queries listed here will override any specified in a config file.\r\n        # Prefix the list here with \"+\" to use these queries and those in the config file.\r\n        \r\n        # Details on CodeQL's query packs refer to : https:\/\/docs.github.com\/en\/code-security\/code-scanning\/automatically-scanning-your-code-for-vulnerabilities-and-errors\/configuring-code-scanning#using-queries-in-ql-packs\r\n        # queries: security-extended,security-and-quality\r\n\r\n        \r\n    # Autobuild attempts to build any compiled languages  (C\/C++, C#, or Java).\r\n    # If this step fails, then you should remove it and run the build manually (see below)\r\n    - name: Autobuild\r\n      uses: github\/codeql-action\/autobuild@v2\r\n\r\n    # \u2139\ufe0f Command-line programs to run using the OS shell.\r\n    # \ud83d\udcda See https:\/\/docs.github.com\/en\/actions\/using-workflows\/workflow-syntax-for-github-actions#jobsjob_idstepsrun\r\n\r\n    #   If the Autobuild fails above, remove it and uncomment the following three lines. \r\n    #   modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.\r\n\r\n    # - run: |\r\n    #   echo \"Run, Build Application using script\"\r\n    #   .\/location_of_script_within_repo\/buildscript.sh\r\n\r\n    - name: Perform CodeQL Analysis\r\n      uses: github\/codeql-action\/analyze@v2\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[],"_links":{"self":[{"href":"https:\/\/www.tianjm.cn\/index.php?rest_route=\/wp\/v2\/posts\/335"}],"collection":[{"href":"https:\/\/www.tianjm.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tianjm.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tianjm.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tianjm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=335"}],"version-history":[{"count":1,"href":"https:\/\/www.tianjm.cn\/index.php?rest_route=\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":336,"href":"https:\/\/www.tianjm.cn\/index.php?rest_route=\/wp\/v2\/posts\/335\/revisions\/336"}],"wp:attachment":[{"href":"https:\/\/www.tianjm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tianjm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tianjm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}