fix: fixed the token-permission and pinned-dependencies issue

Signed-off-by: harshitasao <harshitasao@gmail.com>
This commit is contained in:
harshitasao 2024-08-18 08:55:55 +05:30
parent 109dbe7c18
commit b4caed94cd
4 changed files with 13 additions and 1 deletions

View file

@ -8,6 +8,9 @@ on:
branches:
- main
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest

View file

@ -20,6 +20,9 @@ on:
schedule:
- cron: '29 6 * * 6'
permissions:
contents: read
jobs:
analyze:
name: Analyze

View file

@ -4,6 +4,9 @@ on:
push:
pull_request:
permissions:
contents: read
jobs:
golangci:
name: golangci-lint

View file

@ -2,11 +2,14 @@ name: "Close stale issues"
on:
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3.0.14
- uses: actions/stale@87c2b794b9b47a9bec68ae03c01aeb572ffebdb1 # v3.0.14
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.'