aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py (unfollow)
Commit message (Collapse)AuthorLines
2020-11-16Ensure flake8 runs correctly in Pull Request checkGravatar Sebastiaan Zeeff-13/+11
Unfortunately, the flake8 action we were using from the marketplace required us to use the `pull_request_target` event, which runs in the context of the target repository to protect secrets. However, this also meant that flake8 would run on files already merged into our master branch, not the actual changes made in teh PR! That's obviously pretty useless as a guard against merging linting errors into our repository. This change sidesteps the issue by removing the marketplace action and replacing it by a direct `flake8` run command. To make sure error output ends up as a GitHub Actions Annotation, we ask `flake8` to format its error messages using the correct GitHub Workflow Command format: ::error file={filename},line={line},col={col}::{message} Whenever something is printed to stdout/stderr in that format, GitHub Actions will automatically interpret it as the "register error message" workflow command. Since this doesn't require a GitHub Token with "write" permissions, we can now switch back to the safer `pull_request` event that gets a read-only GitHub Token.
2020-11-15Remove DockerHub from GitHub ActionsGravatar Sebastiaan Zeeff-11/+3
We're no longer using DockerHub in our deployment for SeasonalBot, so it does not make sense to keep pushing containers there.
2020-11-15Change CI badge to GitHub ActionsGravatar Sebastiaan Zeeff-1/+1
2020-11-14Merge build and deploy stagesGravatar Joe Banks-19/+2