mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 06:55:34 +02:00
workflows/*: add security hardening (#8518)
This commit is contained in:
parent
163f2452da
commit
0fbe2488eb
3 changed files with 12 additions and 0 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -2,6 +2,9 @@ name: CI
|
|||
|
||||
on: ['push', 'pull_request']
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
4
.github/workflows/mirror.yml
vendored
4
.github/workflows/mirror.yml
vendored
|
@ -4,8 +4,12 @@ on:
|
|||
push:
|
||||
branches: ['main']
|
||||
|
||||
permissions: {}
|
||||
jobs:
|
||||
mirror:
|
||||
permissions:
|
||||
contents: write # to update branch
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
5
.github/workflows/stale.yml
vendored
5
.github/workflows/stale.yml
vendored
|
@ -4,8 +4,13 @@ on:
|
|||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
permissions: {}
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
issues: write # to close stale issues (actions/stale)
|
||||
pull-requests: write # to close stale PRs (actions/stale)
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
Loading…
Add table
Reference in a new issue