{"id":15823927,"url":"https://github.com/stefh/ghaction-blazorwebassemblyfilehashfixer","last_synced_at":"2026-04-29T19:03:17.583Z","repository":{"id":56070525,"uuid":"273888179","full_name":"StefH/ghaction-BlazorWebAssemblyFileHashFixer","owner":"StefH","description":"GitHub Action to fix the sha256 file-hashes from the resources defined in \"blazor.boot.json\" and \"service-worker-assets.js\".","archived":false,"fork":false,"pushed_at":"2020-11-28T08:45:33.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-11T18:48:51.292Z","etag":null,"topics":["blazor","blazor-webassembly","fix","hashes","sha256","webassembly"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StefH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-21T11:12:51.000Z","updated_at":"2021-08-04T02:57:18.000Z","dependencies_parsed_at":"2023-01-05T04:49:40.967Z","dependency_job_id":null,"html_url":"https://github.com/StefH/ghaction-BlazorWebAssemblyFileHashFixer","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.15384615384615385","last_synced_commit":"f5923601e3c5dceb003ca5ebda83ff9c14476b15"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/StefH/ghaction-BlazorWebAssemblyFileHashFixer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2Fghaction-BlazorWebAssemblyFileHashFixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2Fghaction-BlazorWebAssemblyFileHashFixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2Fghaction-BlazorWebAssemblyFileHashFixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2Fghaction-BlazorWebAssemblyFileHashFixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefH","download_url":"https://codeload.github.com/StefH/ghaction-BlazorWebAssemblyFileHashFixer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2Fghaction-BlazorWebAssemblyFileHashFixer/sbom","scorecard":{"id":134037,"data":{"date":"2025-08-04","repo":{"name":"github.com/StefH/ghaction-BlazorWebAssemblyFileHashFixer","commit":"f5923601e3c5dceb003ca5ebda83ff9c14476b15"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating sheyenrath/blazor-webassembly-filehash-fixer:2 to sheyenrath/blazor-webassembly-filehash-fixer:2@sha256:7731ec2d10913a7d1e09710b3ba0bb5b5ff874e7a797de9fdd57dbc1fb730d5e","Warn: containerImage not pinned by hash: src/BlazorWebAssemblyFileHashFixer/Dockerfile:1","Warn: containerImage not pinned by hash: src/BlazorWebAssemblyFileHashFixer/Dockerfile:16: pin your Docker image by updating mcr.microsoft.com/dotnet/core/runtime:3.1-bionic to mcr.microsoft.com/dotnet/core/runtime:3.1-bionic@sha256:3e6d649e15ec0b3177e4571bfba0c714628137dc2b9a40ba4b70294c2f5b6032","Warn: containerImage not pinned by hash: src/BlazorWebAssemblyFileHashFixer/Dockerfile.out:1: pin your Docker image by updating mcr.microsoft.com/dotnet/core/runtime:3.1-bionic to mcr.microsoft.com/dotnet/core/runtime:3.1-bionic@sha256:3e6d649e15ec0b3177e4571bfba0c714628137dc2b9a40ba4b70294c2f5b6032","Info:   0 out of   4 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}}]},"last_synced_at":"2025-08-16T05:56:23.579Z","repository_id":56070525,"created_at":"2025-08-16T05:56:23.579Z","updated_at":"2025-08-16T05:56:23.579Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32439301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blazor","blazor-webassembly","fix","hashes","sha256","webassembly"],"created_at":"2024-10-05T08:24:10.846Z","updated_at":"2026-04-29T19:03:17.545Z","avatar_url":"https://github.com/StefH.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghaction-BlazorWebAssemblyFileHashFixer\r\n\r\nGitHub Action to fix the sha256 file-hashes in:\r\n- blazor.boot.json\r\n- service-worker-assets.js\r\n\r\n## Why\r\n\r\nIn case you deploy your Blazor WebAssembly application on GitHub Pages and do one the modifications below:\r\n - [SteveSandersonMS/ghaction-rewrite-base-href](https://github.com/SteveSandersonMS/ghaction-rewrite-base-href)\r\n - [show-a-loading-progress-indicator-for-a-blazor-webassembly-application](https://medium.com/@stef.heyenrath/show-a-loading-progress-indicator-for-a-blazor-webassembly-application-ea28595ff8c1)\r\n\r\nThe index.html and/or .js files are modified.\r\nAnd when running the Blazor WebAssembly using a service-worker, you can get this error in the console:\r\n\r\n```\r\nFailed to find a valid digest in the 'integrity' attribute for resource 'https://stefh.github.io/xxx/index.html' with computed SHA-256 integrity '/C6AMmjXzNTqgqy8YOF4zcMbioqALgdg/bbhWojItcw='. The resource has been blocked.\r\nUnknown error occurred while trying to verify integrity.\r\nservice-worker.js:1 Uncaught (in promise) TypeError: Failed to fetch\r\n```\r\n\r\n## Solution\r\n\r\nUse this GitHub Action to fix the SHA56 hashes in the `blazor.boot.json` and `service-worker-assets.js` files.\r\n\r\n## Usage\r\n\r\n### Inputs\r\n\r\n#### `wwwroot-path`\r\n\r\n**Required** The path to the wwwroot folder. Default this is `.`.\r\n\r\n### Example\r\n\r\n``` yml\r\n- name: BlazorWebAssemblyFileHashFixer\r\n  uses: stefh/ghaction-BlazorWebAssemblyFileHashFixer@v1\r\n  with:\r\n    wwwroot-path: ${{ env.PUBLISH_DIR }}\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefh%2Fghaction-blazorwebassemblyfilehashfixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefh%2Fghaction-blazorwebassemblyfilehashfixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefh%2Fghaction-blazorwebassemblyfilehashfixer/lists"}