mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-23 02:35:23 +00:00
Merge pull request #1676 from PrivateBin/workflow-permissions
Workflow permissions
This commit is contained in:
commit
4b8903cf86
7 changed files with 24 additions and 2 deletions
4
.github/workflows/codacy-analysis.yml
vendored
4
.github/workflows/codacy-analysis.yml
vendored
|
|
@ -17,6 +17,10 @@ on:
|
|||
schedule:
|
||||
- cron: '45 16 * * 1'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
jobs:
|
||||
codacy-security-scan:
|
||||
name: Codacy Security Scan
|
||||
|
|
|
|||
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
|
|
@ -18,6 +18,10 @@ on:
|
|||
schedule:
|
||||
- cron: '28 22 * * 5'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
|
|
|
|||
5
.github/workflows/eslint.yml
vendored
5
.github/workflows/eslint.yml
vendored
|
|
@ -1,6 +1,4 @@
|
|||
name: ESLint Check
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -14,6 +12,9 @@ on:
|
|||
- 'js/package-lock.json'
|
||||
- .github/workflows/eslint.yml
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
eslint:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -4,8 +4,12 @@ on:
|
|||
push:
|
||||
tags: '[0-9]+.[0-9]?[0-9]?[0-9]?.?[0-9]+'
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
draft:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Fetch changelog from tag
|
||||
|
|
|
|||
5
.github/workflows/snyk-scan.yml
vendored
5
.github/workflows/snyk-scan.yml
vendored
|
|
@ -8,6 +8,11 @@ on:
|
|||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
jobs:
|
||||
# https://github.com/snyk/actions/tree/master/php
|
||||
snyk-php:
|
||||
|
|
|
|||
1
.github/workflows/test-results.yml
vendored
1
.github/workflows/test-results.yml
vendored
|
|
@ -5,6 +5,7 @@ on:
|
|||
workflows: ["Tests"]
|
||||
types:
|
||||
- completed
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
|
|
|
|||
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
|
|
@ -1,10 +1,13 @@
|
|||
name: Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
|
||||
Composer:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue