view .github/workflows/ossf-scorecard.yml @ 7625:aa8230de5b94

build: xapian under 3.12 - missing version info in build components The build with 1.4.18 fails to get the shared library file names correct. Trying with 1.4.22 as the release against the 1.4.18 dev libraries to see if it works better. The sed script I have that munges the configure script to change the method used for getting the components should work but it obviously doesn't. Failure under 3.12: /usr/bin/install -c -m 644 xapian/__init__.py \ ./xapian/__pycache__/__init__..pyc \ ./xapian/__pycache__/__init__. \ '/opt/hostedtoolcache/Python/3.12.0-rc.2/x64/lib/python3.12/site-packages/xapian' /usr/bin/install: cannot stat './xapian/__pycache__/__init__..pyc': No such file or directory /usr/bin/install: cannot stat './xapian/__pycache__/__init__.': No such file or directory Success under 3.11 which also needs the sed script: /usr/bin/install -c -m 644 xapian/__init__.py \ xapian/__pycache__/__init__.cpython-311.pyc \ xapian/__pycache__/__init__.cpython-311.opt-1.pyc \ '/opt/hostedtoolcache/Python/3.11.5/x64/lib/python3.11/site-packages/xapian'
author John Rouillard <rouilj@ieee.org>
date Mon, 11 Sep 2023 02:00:00 -0400
parents 92cc709b43ee
children bdc81c1e2eec
line wrap: on
line source

# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.

name: Scorecard supply-chain security
on:
  # For Branch-Protection check. Only the default branch is supported. See
  # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
  branch_protection_rule:
  # To guarantee Maintained check is occasionally updated. See
  # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
  schedule:
    - cron: '25 21 * * 5'
  push:
    branches: [ "master" ]

# Declare default permissions as read only.
permissions: read-all

jobs:
  analysis:
    name: Scorecard analysis
    runs-on: ubuntu-latest

    if: "!contains(github.event.head_commit.message, 'no-github-ci')"

    permissions:
      # Needed to upload the results to code-scanning dashboard.
      security-events: write
      # Needed to publish results and get a badge (see publish_results below).
      id-token: write
      # Uncomment the permissions below if installing in a private repository.
      # contents: read
      # actions: read

    steps:
      - name: "Checkout code"
        uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.1.0
        with:
          persist-credentials: false

      - name: "Run analysis"
        uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
        with:
          results_file: results.sarif
          results_format: sarif
          # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
          # - you want to enable the Branch-Protection check on a *public* repository, or
          # - you are installing Scorecard on a *private* repository
          # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
          # repo_token: ${{ secrets.SCORECARD_TOKEN }}

          # Public repositories:
          #   - Publish results to OpenSSF REST API for easy access by consumers
          #   - Allows the repository to include the Scorecard badge.
          #   - See https://github.com/ossf/scorecard-action#publishing-results.
          # For private repositories:
          #   - `publish_results` will always be set to `false`, regardless
          #     of the value entered here.
          publish_results: true

      # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
      # format to the repository Actions tab.
      - name: "Upload artifact"
        uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
        with:
          name: SARIF file
          path: results.sarif
          retention-days: 5

      # Upload the results to GitHub's code scanning dashboard.
      - name: "Upload to code-scanning"
        uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.1.27
        with:
          sarif_file: results.sarif

Roundup Issue Tracker: http://roundup-tracker.org/