Skip to content

Commit e26cf39

Browse files
committed
Add diagnostics job and hardening to lineage_scan workflow
1 parent 822469c commit e26cf39

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/lineage_scan.yml

+38
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,47 @@ env:
1010
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
1111

1212
jobs:
13+
diagnostics:
14+
name: Run diagnostics
15+
# This job does not need any permissions
16+
permissions: {}
17+
runs-on: ubuntu-latest
18+
steps:
19+
# Note that a duplicate of this step must be added at the top of
20+
# each job.
21+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
22+
with:
23+
# Uses the organization variable unless overridden
24+
config: ${{ vars.ACTIONS_PERMISSIONS_CONFIG }}
25+
# Note that a duplicate of this step must be added at the top of
26+
# each job.
27+
- id: harden-runner
28+
name: Harden the runner
29+
uses: step-security/harden-runner@v2
30+
with:
31+
egress-policy: audit
32+
- id: github-status
33+
name: Check GitHub status
34+
uses: crazy-max/ghaction-github-status@v4
35+
- id: dump-context
36+
name: Dump context
37+
uses: crazy-max/ghaction-dump-context@v2
1338
cisagov:
39+
needs:
40+
- diagnostics
41+
# This job does not need any permissions
42+
permissions: {}
1443
runs-on: ubuntu-latest
1544
steps:
45+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
46+
with:
47+
# Uses the organization variable unless overridden
48+
config: ${{ vars.ACTIONS_PERMISSIONS_CONFIG }}
49+
- id: harden-runner
50+
name: Harden the runner
51+
uses: step-security/harden-runner@v2
52+
with:
53+
egress-policy: audit
1654
- name: Check all organization repositories
1755
uses: cisagov/action-lineage@develop
1856
with:

0 commit comments

Comments
 (0)