Skip to content
Merged
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
23 changes: 23 additions & 0 deletions .github/workflows/secu-echo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Contrôle de sécurité Secu-Echo — https://github.com/Prim-Spowa/Secu-Echo
name: Secu-Echo

on:
push:
pull_request:

permissions:
contents: read
issues: write

jobs:
secu-echo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0 # nécessaire pour analyser l'historique git
- uses: Prim-Spowa/Secu-Echo@e6f4d69b5e8ff7e2de0910a9aa9b5fed5fa350b4 # 1.0.0
with:
# Optionnel : jeton personnel (droits repo + workflow) pour le contrôle complet
# des réglages et les PR de correction. Créez le secret SECU_ECHO_TOKEN pour l'activer.
admin-token: ${{ secrets.SECU_ECHO_TOKEN }}
3 changes: 3 additions & 0 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ var GitHub = class {
this.ctx = ctx;
this.fetchFn = fetchFn;
}
token;
ctx;
fetchFn;
async req(method, path, body) {
const res = await this.fetchFn(`${this.ctx.apiUrl}/repos/${this.ctx.repo}${path}`, {
method,
Expand Down
Loading
Loading