Skip to content

Commit

Permalink
Merge pull request #913 from step-security-bot/stepsecurity_remediati…
Browse files Browse the repository at this point in the history
…on_1717354875

[StepSecurity] ci: Harden GitHub Actions
  • Loading branch information
jasonkarns authored Jun 2, 2024
2 parents 325a9d2 + d7f1596 commit 31982a8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
schedule: [{cron: '0 */6 * * *'}] # 6hrly https://crontab.guru/#0_*/6_*_*_*
workflow_dispatch:

permissions: {contents: read}

jobs:
scrape:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Release
on:
push: { tags: 'v[0-9]+.[0-9]+.[0-9]+*' }

permissions: {contents: read}

jobs:
release:
permissions: { contents: write, id-token: write}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-default-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push: { branches: main }
workflow_dispatch:

permissions: { contents: write }
permissions: {contents: write}

jobs:
sync:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
schedule: [{cron: '0 0 10 * *'}] # monthly https://crontab.guru/#0_0_10_*_*
workflow_dispatch:

permissions: read-all
permissions: {contents: read}

jobs:
test:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
schedule: [{ cron: '0 10 * * *' }] # daily: https://crontab.guru/#0_10_*_*_*
workflow_dispatch:

permissions: {contents: read}

jobs:
bump:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 31982a8

Please sign in to comment.