Conversation
| needs: index-packages | ||
| uses: ./.github/workflows/test-deb-packages.yml | ||
| with: | ||
| pkg-type: nightly | ||
|
|
||
| test-rpm-packages: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 months ago
To fix the problem, we should add an explicit permissions section at the top level of the workflow (recommended for consistency and coverage, unless fine-grained per-job tuning is preferred). Start with the minimal set required: for workflows mainly reading source and uploading artifacts, and those using reusable workflows (which may require more), the base should be contents: read, possibly packages: write or actions: write if needed. A conservative starting point is to use contents: read, and as needed add additional write privileges to specific jobs. Since without changing functionality we can’t guess the least needed, adopt the minimal starting point as suggested by CodeQL.
Changes needed:
- Insert a
permissions:block after the workflow name and beforeon: - Use
permissions: {}for absolute minimum starting (denies all except metadata), orcontents: read(which is normally safe for most workflows unless writing is needed). Since jobs upload artifacts and potentially publish Docker images, some jobs may need broader permissions, but the initial fix is to add the recommended minimal block. - All changes are in .github/workflows/nightly-release.yml.
| @@ -1,4 +1,5 @@ | ||
| name: Nightly release | ||
| permissions: {} | ||
|
|
||
| on: | ||
| workflow_dispatch: |
13a2d09 to
e716cd5
Compare
Signed-off-by: Hofi <[email protected]>
…already set (e.g. when manually triggered) Signed-off-by: Hofi <[email protected]>
Signed-off-by: Hofi <[email protected]> # Conflicts: # dbld/builddeps Signed-off-by: Hofi <[email protected]>
Signed-off-by: Hofi <[email protected]>
Signed-off-by: Hofi <[email protected]>
…e on the github UI) Signed-off-by: Hofi <[email protected]>
Signed-off-by: Hofi <[email protected]>
Signed-off-by: Hofi <[email protected]>
Signed-off-by: Hofi <[email protected]>
Signed-off-by: Hofi <[email protected]>
…M as well Signed-off-by: Hofi <[email protected]>
Signed-off-by: Tamas Pal <[email protected]> Signed-off-by: Hofi <[email protected]>
Signed-off-by: Hofi <[email protected]>
Signed-off-by: Hofi <[email protected]>
e716cd5 to
c1390eb
Compare
d37b5d4 to
a961ba7
Compare
Signed-off-by: Hofi <[email protected]>
a961ba7 to
d8f6a8a
Compare
Signed-off-by: Hofi <[email protected]>
d8f6a8a to
ff90601
Compare
New package formats, platforms, and architectures!
the long-awaited RPM repository is here, we have RHEL-8, RHEL-9, and REHL-10 packages available, both for amd64 and arm64 architectures,
just download and install the repository definition
we fixed the publishing of our arm64 DEB packages
added new DEB packages for Debian Trixie, both for amd64 and arm64.
new DBLD docker images for Rocky-9, OpenSuse Tumbleweed, Ubuntu Plucky, and Debian Trixie
Resolves #5429
Resolves #5391
Successful Nightly run: https://github.com/syslog-ng/syslog-ng/actions/runs/17322559693