You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,14 @@ jobs:
34
34
GH_TOKEN: ${{ secrets.GH_TOKEN }}
35
35
ORGANIZATION: ${{ secrets.ORGANIZATION }}
36
36
PR_BODY: your text goes here
37
+
HOURS_DELAY: 24
37
38
```
38
39
- Be sure to fill out the `env` values above with your information. More info on creating secrets can be found [here](https://docs.github.com/en/actions/security-guides/encrypted-secrets).
39
-
- Your GitHub token will need to have read/write access to all the repositories in the organization
40
+
- Your GitHub token will need to have read/write access to all the repositories in the organization as well as the workflow permission
41
+
- You must include the `HOURS_DELAY` value and set it to a valid `int` in order to set what date the action is looking for new repositories on.
42
+
This being configurable allows users to give more time for repositories to contain code by increasing the delay.
43
+
The default 24 will make the action check for repos created on the previous day to see if they have code scanning enabled.
44
+
Changing the value to 72, will make the action check for repositories created 3 days ago.
40
45
41
46
## How it does this
42
47
- A CRON job on GitHub actions triggers a nightly run of this script
@@ -46,6 +51,16 @@ jobs:
46
51
## Contributions
47
52
We would :heart: contributions to improve this action. Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for how to get involved.
48
53
54
+
## Debugging in GitHub Actions
55
+
- Add the following lines to the workflow .yaml file
56
+
```yaml
57
+
env:
58
+
ACTIONS_RUNNER_DEBUG: true
59
+
ACTIONS_STEP_DEBUG: true
60
+
```
61
+
- That will enable debug printing to the action log so that you can see detailed information if issues arise.
62
+
- Setting the `HOURS_DELAY: 0` is helpful so that you can create a repository in an org and not wait to test the action against it
63
+
49
64
## Instructions to run locally
50
65
- Clone the repository
51
66
- Create a personal access token with repository permissions and workflow permissions
0 commit comments