Skip to content

Commit

Permalink
Merge pull request #2910 from balena-io/vipulgupta2048/source-integrity
Browse files Browse the repository at this point in the history
patch: Add Subresource Integrity to scripts being fetched
  • Loading branch information
vipulgupta2048 authored Feb 19, 2024
2 parents e368070 + 107bd7b commit af01434
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion templates/_base-images-ref.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js" integrity="sha512-3oappXMVVac3Ge3OndW0WqpGTWx9jjRJA8SXin8RxmPfc8rg87b31FGy14WHG/ZMRISo9pBjezW9y00RYAEONA==" crossorigin="anonymous"></script>
<script type="text/javascript">

(function () {
Expand Down
2 changes: 1 addition & 1 deletion templates/_config.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js" integrity="sha512-3oappXMVVac3Ge3OndW0WqpGTWx9jjRJA8SXin8RxmPfc8rg87b31FGy14WHG/ZMRISo9pBjezW9y00RYAEONA==" crossorigin="anonymous"></script>
<script type="text/javascript">
(function () {
window.jQuery
Expand Down
2 changes: 1 addition & 1 deletion templates/_copy_code_block.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.8/clipboard.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.11/clipboard.min.js" integrity="sha512-7O5pXpc0oCRrxk8RUfDYFgn0nO1t+jLuIOQdOMRp4APB7uZ4vSjspzp5y6YDtDs4VzUSTbWzBFZ/LKJhnyFOKw==" crossorigin="anonymous"></script>
<script type="text/javascript">
window.addEventListener('load', function () {
// Creating the clipboard button
Expand Down
2 changes: 1 addition & 1 deletion templates/_devices.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js" integrity="sha512-3oappXMVVac3Ge3OndW0WqpGTWx9jjRJA8SXin8RxmPfc8rg87b31FGy14WHG/ZMRISo9pBjezW9y00RYAEONA==" crossorigin="anonymous"></script>
<script type="text/javascript">

(function () {
Expand Down
2 changes: 1 addition & 1 deletion templates/_esr_devices.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js" integrity="sha512-3oappXMVVac3Ge3OndW0WqpGTWx9jjRJA8SXin8RxmPfc8rg87b31FGy14WHG/ZMRISo9pBjezW9y00RYAEONA==" crossorigin="anonymous"></script>
<script type="text/javascript">

(function () {
Expand Down
2 changes: 1 addition & 1 deletion templates/_machines-architectures.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js" integrity="sha512-3oappXMVVac3Ge3OndW0WqpGTWx9jjRJA8SXin8RxmPfc8rg87b31FGy14WHG/ZMRISo9pBjezW9y00RYAEONA==" crossorigin="anonymous"></script>
<script type="text/javascript">
(function () {
window.jQuery
Expand Down

0 comments on commit af01434

Please sign in to comment.