Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sri-history): correct SRI for various axe files #2041

Merged
merged 1 commit into from
Feb 12, 2020
Merged

Conversation

WilcoFiers
Copy link
Contributor

@WilcoFiers WilcoFiers commented Feb 12, 2020

Explanation for why this went wrong is in #2042.

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Code is reviewed for security

@WilcoFiers WilcoFiers requested a review from a team as a code owner February 12, 2020 07:46
@stephenmathieson
Copy link
Member

Why were these incorrect?

@straker
Copy link
Contributor

straker commented Feb 12, 2020

These were auto generated from the release script, so fixing them here won't fix the problem for the next release either. We need to figure out what is wrong with the script that generates these if it's producing invalid SRIs

},
"3.4.2": {
"axe.js": "sha256-1O2tV4TBC/8pYjxbIwj192fUX1SJvsjn8KQH3PdJUuU=",
"axe.min.js": "sha256-XXgQWSZNsMKcqEQnEU2BDkIfCzV6gCjOjrwnrzioYm4="
},
"3.5.0": {
"axe.js": "sha256-MPhNDpZVnZlXBeRKLHjKbiN4Lz4RA/Cb6FHqSsOQR/g=",
"axe.min.js": "sha256-Snr0xNyrSfcrWKoPPk/5335i7Aj5nrflncNblRZMMqM="
"axe.js": "sha256-w/zYk9v7UUawn15gNmZHGrh8WdzCI1bSxmRM2N7Uk4o=",
Copy link
Contributor

@straker straker Feb 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This number is different than the one I generate when on the #2042 branch (after running npm ci)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"3.5.0": {
		"axe.js": "sha256-+7Q5f49NA9ko9730M1oM2Tj3aXXwIvx5qaG92uETNp8=",
		"axe.min.js": "sha256-H4Py7XBch38wDECBdMX7eHsyHuTHUiz6DPbeFOoEzzs="
	}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running npm ci might not be correct either. I got these SRIs from https://cdnjs.com/libraries/axe-core. I've used it before, and other SRIs seem correct, so I trust it. If you want to know for sure, pull down axe.js from NPM, put it in the repo and validate that one.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct. Have to use the exact axe-core from npm to build the same hash.

@WilcoFiers WilcoFiers merged commit c36ccc5 into develop Feb 12, 2020
@WilcoFiers WilcoFiers deleted the sri-fix branch February 12, 2020 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants