Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[StepSecurity] ci: Harden GitHub Actions #1095

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/label-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@
env:
LABEL_NAME: 'automerge :bell:'

permissions:
contents: read

jobs:
add-remove-label:
permissions:
issues: write # for dependabot to enable auto-label
repository-projects: write # for dependabot to enable auto-label
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1

Check warning on line 22 in .github/workflows/label-automerge.yml

View workflow job for this annotation

GitHub Actions / Lint / Lint sources

22:84 [comments] too few spaces before comment
with:
egress-policy: audit

- name: Update label
run: |
if [[ "${{ github.event.action }}" == "auto_merge_enabled" ]]; then
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
actions: read

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1

Check warning on line 31 in .github/workflows/scorecards.yml

View workflow job for this annotation

GitHub Actions / Lint / Lint sources

31:84 [comments] too few spaces before comment
with:
egress-policy: audit

- name: "Checkout code"
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # tag=v4.2.1
with:
Expand Down
Loading