name: Close stale issues
on:
  workflow_dispatch:
  schedule:
    - cron:  '30 8 * * mon'

permission:
  issues: write

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v4
        with:
          stale-issue-message: 'This issue has been marked as stale because it has been open for more than 14 days with no activity. Remove stale label or comment, otherwise it will be closed in 7 days '
          stale-issue-label: 'status: stale'
          close-issue-message: 'This issue has been closed becasue has been stale for more than 7 days. If you think this issue deserves some attention feel free to reopen it'
          close-issue-label: 'conclusion: stale'
          days-before-stale: 14
          days-before-close: 7
          days-before-pr-close: -1
          only-labels: 'status: waiting for information'
          debug-only: false

name: Close stale issues
on:
  workflow_dispatch:
  schedule:
    - cron:  '30 8 * * mon'

permissions:
  issues: write

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v4
        with:
          stale-issue-message: 'This issue has been marked as stale because it has been open for more than 14 days with no activity. Remove stale label or comment, otherwise it will be closed in 7 days '
          stale-issue-label: 'status: stale'
          close-issue-message: 'This issue has been closed becasue has been stale for more than 7 days. If you think this issue deserves some attention feel free to reopen it'
          close-issue-label: 'conclusion: stale'
          days-before-stale: 14
          days-before-close: 7
          days-before-pr-close: -1
          only-labels: 'status: waiting for information'
          debug-only: false

Correct key name in "Close stale issues" workflow
Correct key name in "Close stale issues" workflow

The previous incorrect key name `permission` caused the workflow run to error:

```
Invalid workflow file : .github/workflows/close-stale-issues.yml#L7
The workflow is not valid. .github/workflows/close-stale-issues.yml (Line: 7, Col: 1): Unexpected value 'permission'
```

The correct key name is `permissions`:

https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#permissions