1 name: "Set pending OfBorg status"
5 # Sets the ofborg-eval status to "pending" to signal that we are waiting for
6 # OfBorg even if it is running late. The status will be overwritten by OfBorg
7 # once it starts evaluation.
10 # When extending this action, be aware that $GITHUB_TOKEN allows (restricted) write access to
11 # the GitHub repository. This means that it should not evaluate user input in a
12 # way that allows code injection.
19 if: github.repository_owner == 'NixOS'
22 runs-on: ubuntu-latest
24 - name: "Set pending OfBorg status"
26 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 -H "Accept: application/vnd.github.v3+json" \
31 -H "Authorization: Bearer $GITHUB_TOKEN" \
32 -d '{"context": "ofborg-eval", "state": "pending", "description": "Waiting for OfBorg..."}' \
33 "https://api.github.com/repos/NixOS/nixpkgs/commits/${{ github.event.pull_request.head.sha }}/statuses"