chore(deps): bump the all group with 2 updates #1568
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
| # Copyright 2025 Chainguard, Inc. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: "CodeQL Advanced" | |
| on: | |
| pull_request: | |
| push: | |
| branches: ["main"] | |
| schedule: | |
| - cron: "35 23 * * 0" | |
| env: | |
| CODEQL_EXTRACTOR_GO_BUILD_TRACING: "on" | |
| YARA_X_RELEASE: "1.15.0" | |
| permissions: {} | |
| jobs: | |
| analyze: | |
| if: ${{ github.repository == 'chainguard-dev/malcontent' }} | |
| runs-on: ubuntu-latest-16-core | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| security-events: write | |
| steps: | |
| - uses: step-security/harden-runner@6c3c2f2c1c457b00c10c4848d6f5491db3b629df # v2.18.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| *.blob.core.windows.net:443 | |
| *.githubapp.com:443 | |
| api.github.com:443 | |
| dl.google.com:443 | |
| github.com:443 | |
| go.dev:443 | |
| index.crates.io:443 | |
| objects.githubusercontent.com:443 | |
| proxy.golang.org:443 | |
| release-assets.githubusercontent.com:443 | |
| static.crates.io:443 | |
| static.rust-lang.org:443 | |
| storage.googleapis.com:443 | |
| sum.golang.org:443 | |
| uploads.github.com:443 | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Cache yara-x-capi installation | |
| id: yara-x-capi | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: yara-x-install | |
| key: yara-x-capi-v${{ env.YARA_X_RELEASE }}-${{ runner.os }} | |
| - name: Checkout virusTotal/yara-x | |
| if: steps.yara-x-capi.outputs.cache-hit != 'true' | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| repository: virusTotal/yara-x | |
| path: yara-x | |
| ref: refs/tags/v${{ env.YARA_X_RELEASE }} | |
| - name: Install Rust for yara-x-capi | |
| if: steps.yara-x-capi.outputs.cache-hit != 'true' | |
| uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 | |
| with: | |
| toolchain: stable | |
| - name: Cache Rust dependencies | |
| if: steps.yara-x-capi.outputs.cache-hit != 'true' | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: | | |
| ~/.cargo/registry/ | |
| ~/.cargo/git/ | |
| key: rust-cargo-v${{ env.YARA_X_RELEASE }}-${{ runner.os }} | |
| restore-keys: rust-cargo- | |
| - name: Build yara-x-capi | |
| if: steps.yara-x-capi.outputs.cache-hit != 'true' | |
| run: | | |
| command -v cargo-cinstall || cargo install cargo-c --locked | |
| cd ${{ github.workspace }}/yara-x | |
| RUSTFLAGS="-C target-feature=+crt-static" cargo cinstall -p yara-x-capi --features=native-code-serialization \ | |
| --profile release-lto \ | |
| --pkgconfigdir=${{ github.workspace }}/yara-x-install \ | |
| --includedir=${{ github.workspace }}/yara-x-install \ | |
| --libdir=${{ github.workspace }}/yara-x-install \ | |
| --crt-static --library-type="staticlib" | |
| rm -rf ${{ github.workspace }}/yara-x | |
| - name: Set up Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version-file: "go.mod" | |
| check-latest: true | |
| cache: true | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 | |
| with: | |
| languages: go | |
| build-mode: manual | |
| - run: | | |
| go build -o /dev/null ./... | |
| go test -o /dev/null -c ./... | |
| env: | |
| PKG_CONFIG_PATH: ${{ github.workspace }}/yara-x-install | |
| LD_LIBRARY_PATH: ${{ github.workspace }}/yara-x-install | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 | |
| with: | |
| category: "/language:go" | |
| analyze-actions: | |
| if: ${{ github.repository == 'chainguard-dev/malcontent' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: read | |
| security-events: write | |
| steps: | |
| - uses: step-security/harden-runner@6c3c2f2c1c457b00c10c4848d6f5491db3b629df # v2.18.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| *.blob.core.windows.net:443 | |
| *.githubapp.com:443 | |
| api.github.com:443 | |
| dl.google.com:443 | |
| github.com:443 | |
| go.dev:443 | |
| objects.githubusercontent.com:443 | |
| proxy.golang.org:443 | |
| release-assets.githubusercontent.com:443 | |
| storage.googleapis.com:443 | |
| sum.golang.org:443 | |
| uploads.github.com:443 | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 | |
| with: | |
| languages: actions | |
| build-mode: none | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 | |
| with: | |
| category: "/language:actions" |