1
0
mirror of https://github.com/systemd/systemd synced 2026-04-06 23:24:52 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Evgeny Vereshchagin
e44a47d186 ci: pin the codeql action to SHAs
It's a follow-up to https://github.com/systemd/systemd/pull/21316.

Judging by https://github.com/evverx/systemd/pull/36, Dependabot
supports their release cycle
2021-11-14 10:42:04 +00:00
Evgeny Vereshchagin
e7a966915d ci: mimic the "restricted" mode
Judging by https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
it should be enough to grant the "read contents" permission to
most of our actions. The "read metadata" permission is set impliciclty
somewhere and can't be set via the "permissions" setting:
```
The workflow is not valid. .github/workflows/linter.yml (Line: 14, Col: 3): Unexpected value 'metadata'
```
2021-11-14 10:41:06 +00:00
7 changed files with 15 additions and 9 deletions

View File

@ -12,7 +12,8 @@ on:
- 'src/**'
- 'test/fuzz/**'
permissions: read-all
permissions:
contents: read
jobs:
build:

View File

@ -5,7 +5,8 @@
name: CIFuzz
permissions: read-all
permissions:
contents: read
on:
pull_request:

View File

@ -29,14 +29,14 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@5581e08a65fc3811c3ac78939dd59e7a8adbf003
with:
languages: ${{ matrix.language }}
- run: sudo -E .github/workflows/unit_tests.sh SETUP
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@5581e08a65fc3811c3ac78939dd59e7a8adbf003
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@5581e08a65fc3811c3ac78939dd59e7a8adbf003

View File

@ -9,7 +9,8 @@ on:
# Run Coverity daily at midnight
- cron: '0 0 * * *'
permissions: read-all
permissions:
contents: read
jobs:
build:

View File

@ -10,7 +10,8 @@ on:
- main
- v[0-9]+-stable
permissions: read-all
permissions:
contents: read
jobs:
build:

View File

@ -14,7 +14,8 @@ on:
- main
- v[0-9]+-stable
permissions: read-all
permissions:
contents: read
jobs:
ci:

View File

@ -9,7 +9,8 @@ on:
- main
- v[0-9]+-stable
permissions: read-all
permissions:
contents: read
jobs:
build: