Action to verify Rustacean Authenticity on PRs modifying a Rustacean file.
Provide an automated way to verify the authenticity of a Rustacean file in a PR. This is achieved by checking the authorship of the file and comparing it to the PR author.
This Action leverages the GitHub API and the GitHub Actions Context to verify the authenticity of the Rustacean file.
For convenience a mock server is provided which is used to simulate the GitHub API.
Run the following command to start the server:
cargo r --bin mockThe server listens on port
3000by default.
Run the following command on development mode:
GITHUB_BASE_URL="http://localhost:3000/repos/rustacean-sh/rustacean.sh" \
cargo r --bin rustacean-authorship-action -- \
--pr-number <PR Number to Verify> \
--pr-author <PR Author GitHub's Username> \
--github-token <GitHub Token>Static assets on the
mockserver are located at./fixtures, you can modify them to test different scenarios. Default values are:--pr-number 22--pr-author EstebanBorai--github-token 1234
This project is licensed under the MIT license.