Bump the pkg-updates group with 6 updates #783
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
| name: Semgrep | |
| on: | |
| pull_request: | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| schedule: | |
| - cron: 0 0 * * 0 | |
| workflow_dispatch: | |
| inputs: | |
| reason: | |
| description: The reason for running the workflow | |
| required: true | |
| default: Manual run | |
| concurrency: | |
| # github.event.pull_request.number || github.ref: pull request number or branch name if not a pull request | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CHECK_PERMISSIONS: 0 | |
| permissions: {} | |
| jobs: | |
| pre_job: | |
| name: Check for Duplicate Actions | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: write | |
| contents: read | |
| # Map a step output to a job output | |
| outputs: | |
| should_skip: ${{ steps.check-duplicate-actions.outputs.should_skip }} | |
| steps: | |
| - id: check-permissions | |
| name: Check action permissions | |
| uses: GitHubSecurityLab/actions-permissions/monitor@bf82d13b9b10051d224345ab9184f5ede0a94289 # v1.0.2-beta9 | |
| if: env.CHECK_PERMISSIONS == '1' | |
| - id: check-duplicate-actions | |
| name: Check for duplicate actions | |
| uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1 | |
| with: | |
| cancel_others: true | |
| skip_after_successful_duplicate: true | |
| concurrent_skipping: same_content_newer | |
| semgrep: | |
| name: Semgrep/CI | |
| needs: pre_job | |
| if: needs.pre_job.outputs.should_skip != 'true' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| container: | |
| image: semgrep/semgrep@sha256:543f663e06ef0806a62c832a2d55760d6c84b3eb4f3e0e5a0af0321611062c28 # 1.150.0-nonroot | |
| # # https://github.com/actions/runner/issues/2033#issuecomment-1598547465 | |
| options: --user 1001 | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| steps: | |
| - id: checkout-repo | |
| name: Checkout Repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: true | |
| - id: filter | |
| name: Check for changed files | |
| uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 | |
| with: | |
| filters: .github/filter.yml | |
| list-files: shell | |
| - id: run-semgrep | |
| name: Run Semgrep | |
| if: steps.filter.outputs.code == 'true' || steps.filter.outputs.workflows == 'true' | |
| run: semgrep ci | |
| env: | |
| SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} |