├── .github └── workflows │ └── challenge.yml ├── README.md └── issues /.github/workflows/challenge.yml: -------------------------------------------------------------------------------- 1 | name: CheckIn 2 | on: 3 | issues: 4 | types: [opened] 5 | workflow_dispatch: 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@v2 12 | - name: Run a multi-line script 13 | env: 14 | issues: "${{ github.event.issue.body }}" 15 | user: "${{ github.event.issue.user.login }}" 16 | flag: "${{ secrets.FLAG }}" 17 | run: | 18 | echo "$user:$issues" >> issues 19 | git config user.name github-actions 20 | git config user.email github-actions@github.com 21 | git add . 22 | git commit -m "add a new issue" 23 | git push 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CheckIn 2 | 3 | secret.FLAG is like [0-9]{5} 4 | 5 | submit flag like RCTF{[0-9]{5}} 6 | 7 | if you get secret.FLAG=00000,then submit RCTF{00000} 8 | --------------------------------------------------------------------------------