Skip to content

Commit a860bf6

Browse files
committed
Sécurité : fichiers de sécurité à jour (dev-tools 0.1.8-alpha)
- dependabot.yml : délai de sept jours (cooldown) pour chaque écosystème, exigé par zizmor 1.32. - scorecard.yml et zizmor.yml : gabarits de dev-tools 0.1.8-alpha. - Fichiers écrits par phil-dev split : la prochaine scission redonne les mêmes.
1 parent 59f143b commit a860bf6

3 files changed

Lines changed: 101 additions & 0 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# The dependencies of this read-only split repository, watched by Dependabot. phil-dev split writes this file on top
2+
# of each split: change it in phil/dev-tools, not here.
3+
#
4+
# Version updates open no pull request (open-pull-requests-limit: 0): a change made here would be overwritten by the
5+
# next split. The alerts and the security updates still tell when a dependency has an advisory; the fix lands in the
6+
# monorepo the package is developed in.
7+
version: 2
8+
updates:
9+
- package-ecosystem: composer
10+
directory: /
11+
schedule:
12+
interval: weekly
13+
open-pull-requests-limit: 0
14+
cooldown:
15+
default-days: 7
16+
- package-ecosystem: github-actions
17+
directory: /
18+
schedule:
19+
interval: weekly
20+
open-pull-requests-limit: 0
21+
cooldown:
22+
default-days: 7

‎.github/workflows/scorecard.yml‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# The OpenSSF Scorecard of this read-only split repository: its supply-chain checks, published for the badge of the
2+
# README and uploaded to code scanning. phil-dev split writes this file on top of each split: change it in
3+
# phil/dev-tools, not here. Every action is pinned to the commit of the version its comment names.
4+
name: Scorecard
5+
6+
on:
7+
branch_protection_rule:
8+
schedule:
9+
- cron: '17 4 * * 1'
10+
push:
11+
branches: ['main']
12+
13+
permissions: read-all
14+
15+
jobs:
16+
analysis:
17+
name: Scorecard analysis
18+
runs-on: ubuntu-latest
19+
permissions:
20+
# The results go to code scanning, and are published with the OIDC token of the workflow: no secret is needed.
21+
security-events: write
22+
id-token: write
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26+
with:
27+
persist-credentials: false
28+
29+
- name: Analysis
30+
uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
31+
with:
32+
results_file: results.sarif
33+
results_format: sarif
34+
publish_results: true
35+
36+
- name: Artifact
37+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
38+
with:
39+
name: SARIF file
40+
path: results.sarif
41+
retention-days: 5
42+
43+
- name: Code scanning
44+
uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
45+
with:
46+
sarif_file: results.sarif

‎.github/workflows/zizmor.yml‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# zizmor audits the GitHub Actions workflows of this read-only split repository: injection through untrusted inputs,
2+
# credentials left to the checkout, permissions wider than needed, actions not pinned to a commit. phil-dev split
3+
# writes this file on top of each split: change it in phil/dev-tools, not here. Every action is pinned to the commit of
4+
# the version its comment names.
5+
name: zizmor
6+
7+
on:
8+
push:
9+
branches: ['main']
10+
pull_request:
11+
schedule:
12+
- cron: '23 4 * * 1'
13+
14+
permissions: {}
15+
16+
jobs:
17+
zizmor:
18+
name: zizmor
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25+
with:
26+
persist-credentials: false
27+
28+
# The findings fail the job and annotate the workflows, without code scanning: a private repository may not
29+
# have it.
30+
- name: Audit
31+
uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
32+
with:
33+
advanced-security: false

0 commit comments

Comments
 (0)