Skip to content

Commit fc3d394

Browse files
[StepSecurity] ci: Harden GitHub Actions (#47)
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent f66d6fa commit fc3d394

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/_lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ name: _lint
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
lint:
811
runs-on: ubuntu-latest
912
steps:
10-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1114
- name: 🧹 lint yaml
12-
uses: ibiqlik/action-yamllint@v3
15+
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1
1316
with:
1417
config_file: ".yamllint.yml"

.github/workflows/_stale.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ on:
2020
required: false
2121
default: "keep"
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
stale:
2528
runs-on: ubuntu-latest
2629
steps:
2730
- name: 📆 mark stale activity
28-
uses: actions/stale@v9
31+
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
2932
with:
3033
repo-token: ${{ secrets.BLOOMBERG_OSS_USER_TOKEN_READ }}
3134
days-before-stale: ${{ inputs.days-until-stale }}

.github/workflows/stale-issue.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- cron: "0 0 * * 0"
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
mark-stale:
1013
uses: ./.github/workflows/_stale.yml

0 commit comments

Comments
 (0)