Skip to content

Commit d605def

Browse files
authored
docs(readme): use absolute URLs for logo images (#63)
* docs(readme): use absolute URLs for logo images Use https://raw.githubusercontent.com/<org>/<repo>/main/... for logo references so they render on crates.io. Relative paths render correctly on GitHub but are dropped by the crates.io README sanitizer, leaving a broken image at the top of every crate page. * ci: pin actions to full-length commit SHAs Org policy "all actions must be pinned to a full-length commit SHA" was rejecting CI runs at the workflow setup step. Pin every uses: ref to a 40-char SHA, with the original tag preserved as a trailing comment for human readability. For dtolnay/rust-toolchain and taiki-e/install-action, the action's required input was previously inferred from the ref (@stable, @nextest); since SHA-pinning loses that signal and the action errors out without the input, an explicit `with: toolchain:` / `with: tool:` is added.
1 parent 4d942b9 commit d605def

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/build_and_test.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ jobs:
1111
runs-on: ubuntu-24.04
1212
steps:
1313
- name: Checkout sources
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1515

1616
- name: Install stable toolchain
17-
uses: actions-rs/toolchain@v1
17+
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
1818
with:
1919
profile: minimal
2020
toolchain: stable
2121
override: true
2222

2323
- name: Cache dependencies
24-
uses: Swatinem/rust-cache@v1
24+
uses: Swatinem/rust-cache@81d053bdb0871dcd3f10763c8cc60d0adc41762b # v1
2525

2626
- name: Run cargo check
27-
uses: actions-rs/cargo@v1
27+
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
2828
with:
2929
command: check
3030

3131
- name: Run cargo build
32-
uses: actions-rs/cargo@v1
32+
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
3333
with:
3434
command: build
3535

@@ -61,27 +61,27 @@ jobs:
6161
runs-on: ubuntu-24.04
6262
steps:
6363
- name: Checkout sources
64-
uses: actions/checkout@v4
64+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
6565

6666
- name: Install stable toolchain
67-
uses: actions-rs/toolchain@v1
67+
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
6868
with:
6969
profile: minimal
7070
toolchain: stable
7171
override: true
7272
components: rustfmt, clippy
7373

7474
- name: Cache dependencies
75-
uses: Swatinem/rust-cache@v1
75+
uses: Swatinem/rust-cache@81d053bdb0871dcd3f10763c8cc60d0adc41762b # v1
7676

7777
- name: Run cargo fmt
78-
uses: actions-rs/cargo@v1
78+
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
7979
with:
8080
command: fmt
8181
args: --all -- --check
8282

8383
- name: Run cargo clippy
84-
uses: actions-rs/cargo@v1
84+
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
8585
with:
8686
command: clippy
8787
args: -- -D warnings
@@ -94,17 +94,17 @@ jobs:
9494
os: [ubuntu-24.04, macOS-latest]
9595
steps:
9696
- name: Checkout sources
97-
uses: actions/checkout@v2
97+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
9898

9999
- name: Install stable toolchain
100-
uses: actions-rs/toolchain@v1
100+
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
101101
with:
102102
profile: minimal
103103
toolchain: stable
104104
override: true
105105

106106
- name: Cache dependencies
107-
uses: Swatinem/rust-cache@v1
107+
uses: Swatinem/rust-cache@81d053bdb0871dcd3f10763c8cc60d0adc41762b # v1
108108

109109
- name: Run tests
110110
run: cargo test --verbose

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Search a pair of fastq files for reads that match a given ref or alt sequence.
1515
<p>
1616
<a href="https://fulcrumgenomics.com">
1717
<picture>
18-
<source media="(prefers-color-scheme: dark)" srcset=".github/logos/fulcrumgenomics-dark.svg">
19-
<source media="(prefers-color-scheme: light)" srcset=".github/logos/fulcrumgenomics-light.svg">
20-
<img alt="Fulcrum Genomics" src=".github/logos/fulcrumgenomics-light.svg" height="100">
18+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fulcrumgenomics/fqgrep/main/.github/logos/fulcrumgenomics-dark.svg">
19+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/fulcrumgenomics/fqgrep/main/.github/logos/fulcrumgenomics-light.svg">
20+
<img alt="Fulcrum Genomics" src="https://raw.githubusercontent.com/fulcrumgenomics/fqgrep/main/.github/logos/fulcrumgenomics-light.svg" height="100">
2121
</picture>
2222
</a>
2323
</p>

0 commit comments

Comments
 (0)