Skip to content

chore(deps): Bump step-security/harden-runner from 2.17.0 to 2.18.0 #3351

chore(deps): Bump step-security/harden-runner from 2.17.0 to 2.18.0

chore(deps): Bump step-security/harden-runner from 2.17.0 to 2.18.0 #3351

Workflow file for this run

name: Coverage
on:
pull_request:
paths:
- '**.rs'
- '.github/workflows/coverage.yml'
push:
paths:
- '**.rs'
- '.github/workflows/coverage.yml'
permissions:
contents: read
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@6c3c2f2c1c457b00c10c4848d6f5491db3b629df # v2.18.0
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
cli.codecov.io:443
codecov.io:443
crates.io:443
github.com:443
index.crates.io:443
kv4gacprodeus2file3.blob.core.windows.net:443
objects.githubusercontent.com:443
static.crates.io:443
static.rust-lang.org:443
storage.googleapis.com:443
uploader.codecov.io:443
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@5939f3337e40968c39aa70f5ecb1417a92fb25a0 # v2.75.15
with:
tool: cargo-llvm-cov
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libmagic-dev
- name: Generate code coverage
run: cargo llvm-cov --features=sqlite --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: false