Add "Composer audit" starter workflows & metadata#3345
Open
tangrufus wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new Code Scanning starter workflow for running composer audit and uploading results to GitHub code scanning via SARIF, along with the integration metadata used by the Actions/Code Scanning starter workflow catalog.
Changes:
- Added a new
code-scanning/composer-audit.ymlworkflow that runscomposer audit, converts output to SARIF, and uploads it. - Added a new Code Scanning properties metadata file for the “Composer audit” integration.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| code-scanning/properties/composer-audit.json | Adds metadata for the “Composer audit” Code Scanning integration (needs filename convention fix). |
| code-scanning/composer-audit.yml | Introduces the Composer audit Code Scanning starter workflow using Composer + SARIF upload. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| composer-audit: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 |
ecf3bf6 to
0002831
Compare
ad9ac94 to
6d9f463
Compare
6d9f463 to
a06582a
Compare
albertoblue87-netizen
approved these changes
Jun 23, 2026
albertoblue87-netizen
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pre-requisites
Please note that at this time we are only accepting new starter workflows for Code Scanning. Updates to existing starter workflows are fine.
Tasks
For all workflows, the workflow:
.ymlfile with the language or platform as its filename, in lower, kebab-cased format (for example,docker-image.yml). Special characters should be removed or replaced with words as appropriate (for example, "dotnet" instead of ".NET").GITHUB_TOKENso that the workflow runs successfully.For Code Scanning workflows, the workflow:
code-scanningdirectory.code-scanning/properties/*.properties.jsonfile (for example,code-scanning/properties/codeql.properties.json), with properties set as follows:name: Name of the Code Scanning integration.creator: Name of the organization/user producing the Code Scanning integration.description: Short description of the Code Scanning integration.categories: Array of languages supported by the Code Scanning integration.iconName: Name of the SVG logo representing the Code Scanning integration. This SVG logo must be present in theiconsdirectory.pushtobranches: [ $default-branch, $protected-branches ]andpull_requesttobranches: [ $default-branch ]. We also recommend ascheduletrigger ofcron: $cron-weekly(for example,codeql.yml).Some general notes:
actionsorganization, orAdd "Composer audit" starter workflows & metadata
shivammathur/setup-phpis used to install PHP & Composertypisttech/composer-audit-to-sarif-actionto install ComSARIF which turn Composer audit reports into SARIF formats