rechtzeitig Startseite

Getting started

1. Copy the workflow

Copy examples/workflows/rechtzeitig.yml to .github/workflows/rechtzeitig.yml in your repository (on GitHub: Add file → Create new file). It pins a release by its commit SHA, checks out without keeping the token (persist-credentials: false) and needs no secret. Never run it on pull_request_target, see Data and safety.

2. Set your site

Set url to your start page; left empty, only the repository is checked. Then check sales, subscriptions and fail-on, and decide on the opt-ins vulnerabilities, green-hosting and the secret IPINFO_TOKEN. The site language is read from the start page: German, else English; any other language stops the run. The comments in the file explain each line, Inputs has every other input, and Data and safety says what each opt-in sends.

3. Staging, preview and internal sites

Private or local hosts are allowed for the url host only; third parties and redirects to private addresses stay blocked.

  • Preview URL (Vercel, Netlify): url: ${{ steps.deploy.outputs.preview-url }}
  • App started in the same job: url: http://localhost:3000/ after npm start &
  • Intranet: a self-hosted runner that can reach it.

4. Start the first run

Commit the file to main: its push trigger starts the first run (later: Actions → rechtzeitig → Run workflow). A run with a website takes a few minutes.

Where the findings show: Report. The first run is often red. A rule that does not fit your project can be turned off with a reason.

5. Keep it running

The example runs every Monday at 05:17 UTC, so a new tracker, an expiring certificate or a new vulnerability shows up within a week. A failing check turns the run red, and GitHub emails the person who last changed the cron line. In a public repository, GitHub turns the schedule off after 60 days without activity. To run on every push, remove the paths: line under push:.

The example pins a release by its commit SHA. Add .github/dependabot.yml, and Dependabot opens a pull request for each new release:

version: 2
updates:
  - package-ecosystem: github-actions
    directory: /
    schedule:
      interval: weekly

On github.com you can also lock the workflow with gh actions-lock (gh extension install github/gh-actions-lock). It writes .github/workflows/actions.lock, which records every action by commit and repository id, including the ones rechtzeitig uses inside (setup-node, upload-artifact, codeql-action/upload-sarif), so a commit that exists only in a fork can't run. Dependabot updates the lockfile in its pull requests. Not available on GitHub Enterprise Server. See GitHub's docs.