Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed the token-permission and pinned-dependencies issue #3299

Merged
merged 2 commits into from
Sep 4, 2024
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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
fetch-version:
uses: ./.github/workflows/reusable_fetch_version.yaml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
# The branches below must be a subset of the branches above
branches: [ "master" ]

permissions:
contents: read

jobs:
analyze:
name: Analyze
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Codespell
on:
pull_request:

permissions:
sgaist marked this conversation as resolved.
Show resolved Hide resolved
contents: read

jobs:
codespell:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/engine-version-weakcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- 'userspace/engine/*.cpp'
- 'userspace/engine/*.h'

permissions:
contents: read

jobs:
paths-filter:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/insecure-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- 'release/**'
- 'maintainers/**'

permissions:
contents: read

jobs:
insecure-api:
name: check-insecure-api
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ concurrency:
group: ci-master
cancel-in-progress: true

permissions:
contents: read

jobs:
fetch-version:
uses: ./.github/workflows/reusable_fetch_version.yaml
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ concurrency:
group: ci-release
cancel-in-progress: true

permissions:
contents: read

jobs:
release-settings:
runs-on: ubuntu-latest
Expand All @@ -16,7 +19,7 @@ jobs:
bucket_suffix: ${{ steps.get_settings.outputs.bucket_suffix }}
steps:
- name: Get latest release
uses: rez0n/actions-github-release@v2.0
uses: rez0n/actions-github-release@27a57820ee808f8fd940c8a9d1f7188f854aa2b5 # v2.0
id: latest_release
env:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable_build_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ on:
default: ''
type: string

permissions:
contents: read

jobs:
build-and-test:
# See https://github.com/actions/runner/issues/409#issuecomment-1158849936
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/reusable_build_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ on:
# then we upload all the tarballs to be later downloaded by reusable_publish_docker workflow.
# In this way, we don't need to publish any arch specific image,
# and this "build" workflow is actually only building images.

permissions:
sgaist marked this conversation as resolved.
Show resolved Hide resolved
contents: read

jobs:
build-docker:
# See https://github.com/actions/runner/issues/409#issuecomment-1158849936
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable_build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
type: boolean
default: false

permissions:
contents: read

jobs:
build-modern-bpf-skeleton:
# See https://github.com/actions/runner/issues/409#issuecomment-1158849936
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable_fetch_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
description: "Falco version"
value: ${{ jobs.fetch-version.outputs.version }}

permissions:
contents: read

jobs:
# We need to use an ubuntu-latest to fetch Falco version because
# Falco version is computed by some cmake scripts that do git sorceries
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/reusable_test_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
default: false
type: boolean

permissions:
contents: read

jobs:
test-packages:
# See https://github.com/actions/runner/issues/409#issuecomment-1158849936
Expand Down Expand Up @@ -54,7 +57,7 @@ jobs:
- name: Run tests
env:
LSAN_OPTIONS: "intercept_tls_get_addr=0"
uses: falcosecurity/testing@main
uses: falcosecurity/testing@main
with:
test-falco: 'true'
test-falcoctl: 'true'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/staticanalysis.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: StaticAnalysis
on:
pull_request:
permissions:
contents: read

jobs:
staticanalysis:
runs-on: ubuntu-22.04
Expand Down
Loading