Fix serialize-javascript CPU exhaustion DoS (GHSA-qj8w-gfj5-8c6v) #586
Workflow file for this run
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
| # 'Dependency Review' Reusable Workflow | |
| # | |
| # Note: If the default configuration isn't present in your repository, we use the centralised | |
| # configurations. | |
| name: 'Dependency Review' | |
| on: | |
| pull_request: | |
| workflow_call: | |
| inputs: | |
| retry-on-snapshot-warnings: | |
| description: 'Enable or disable retrying the action every 10 seconds while waiting for dependency submission actions to complete.' | |
| type: boolean | |
| required: false | |
| default: true | |
| retry-on-snapshot-warnings-timeout: | |
| description: 'Maximum amount of time (in seconds) to retry the action while waiting for dependency submission actions to complete.' | |
| type: number | |
| required: false | |
| default: 120 | |
| permissions: | |
| contents: read | |
| # Required for writing a PR Comment | |
| pull-requests: write | |
| jobs: | |
| dependency-review: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout Repository' | |
| uses: actions/checkout@v7 | |
| # [optional] This setup isn't required but if your repository have a configuration, | |
| # we use that versus the centralised config. | |
| - name: 'Check for configuration file' | |
| id: config | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| set -e | |
| if [ -f "./.github/dependency-review.yml" ]; then | |
| echo "Found local configuration file" | |
| echo "config=./.github/dependency-review.yml" >> $GITHUB_STATE | |
| else | |
| echo "No local configuration file found" | |
| echo "Using configuration file from advanced-security/reusable-workflows repository" | |
| echo "config=advanced-security/reusable-workflows/.github/dependency-review.yml@v0.1.0" >> $GITHUB_STATE | |
| fi | |
| - name: 'Dependency Review' | |
| uses: actions/dependency-review-action@v5 | |
| with: | |
| # this value can also be hardcoded to a remote repository | |
| # Example: advanced-security/reusable-workflows/.github/dependency-review.yml@v0.1.0 | |
| config-file: ${{ steps.config.outputs.config }} | |
| comment-summary-in-pr: "always" | |
| retry-on-snapshot-warnings: ${{ inputs.retry-on-snapshot-warnings || false }} | |
| retry-on-snapshot-warnings-timeout: ${{ inputs.retry-on-snapshot-warnings-timeout || 120 }} |