An action retrieved from a third-party GitHub repository should be pinned to a full-length commit SHA. Currently, the only way to ensure an action remains immutable is by pinning it to a specific commit SHA. This approach reduces the risk of malicious actors introducing backdoors into the action’s repository since doing so would require generating a SHA-1 collision for a legitimate Git object payload.
-
Create a new empty GitHub repository.
-
Clone it locally
-
Copy this repository files to the new Github repository.
-
Ensure to include
.github/directory. -
Commit and push the changes to the
masterbranch. -
Go to the Actions tab in the repository to monitor the workflow run.
|
Tip
|
You can install and run act to run Github Actions locally on your workstation. |
-
Install act
-
make runto run the Github workflow locally -
make pushto git add, commit and push -
make statusto retrieve test output from the server
Push you code to the SecDim remote repository. Go to the challenge tab. Security tests will run against your code. If tests pass you will get the challenge score.
-
Push only to
masterbranch. -
Usability tests must always pass.
-
All tests will be overwritten on the server.
-
Security tests are not given in your repository.
Ask your question on SecDim Discuss