Skip to content

Commit a36d233

Browse files
authored
Harden GitHub Actions workflows (#16)
- Pin actions to full commit SHAs for supply chain security - Add step-security/harden-runner for runtime security monitoring - Set minimum GITHUB_TOKEN permissions - Apply security best practices per StepSecurity recommendations
1 parent f52766c commit a36d233

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ jobs:
99
name: Test servicenowToIdpPolicyRulesTransformer
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v5
12+
- name: Harden Runner
13+
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
14+
with:
15+
egress-policy: audit
16+
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v5
1318
- name: Setup Python
14-
uses: actions/setup-python@v6
19+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a20 # v6
1520
with:
1621
python-version: '3.13'
1722
cache: 'pip'

.github/workflows/pylint.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ jobs:
1717
env:
1818
PYTHON_VERSION: '3.13'
1919
steps:
20-
- uses: actions/checkout@v5
20+
- name: Harden Runner
21+
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
22+
with:
23+
egress-policy: audit
24+
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v5
2126
- name: Set up Python
22-
uses: actions/setup-python@v6
27+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a20 # v6
2328
with:
2429
python-version: ${{ env.PYTHON_VERSION }}
2530
- name: Install global dependencies

0 commit comments

Comments
 (0)