Skip to content

ci: add OpenSSF Scorecard workflow and README badge#777

Open
sofianlak wants to merge 1 commit into
michelin:masterfrom
sofianlak:feature/add-scorecard
Open

ci: add OpenSSF Scorecard workflow and README badge#777
sofianlak wants to merge 1 commit into
michelin:masterfrom
sofianlak:feature/add-scorecard

Conversation

@sofianlak
Copy link
Copy Markdown

Closes #776

@github-advanced-security
Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

security-events: write
steps:
- name: Checkout project
uses: actions/checkout@v6

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 0: GitHub-owned GitHubAction not pinned by hash
Click Remediation section below to solve this issue
persist-credentials: false

- name: Run analysis
uses: ossf/scorecard-action@v2.4.3

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 0: third-party GitHubAction not pinned by hash
Click Remediation section below to solve this issue
publish_results: ${{ github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}

- name: Upload SARIF report
uses: github/codeql-action/upload-sarif@v4

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 0: GitHub-owned GitHubAction not pinned by hash
Click Remediation section below to solve this issue
sarif_file: results.sarif

- name: Upload artifact
uses: actions/upload-artifact@v7

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 0: GitHub-owned GitHubAction not pinned by hash
Click Remediation section below to solve this issue
@loicgreffier
Copy link
Copy Markdown
Collaborator

@sofianlak Thanks for the PR, interesting. Looks good to be merged as is, we might adapt the workflow afterwards depending on what it brings and the needs it addresses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add OpenSSF Scorecard workflow and badge

3 participants