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

Security scanning zizmor (infra) #1668

Merged
merged 3 commits into from
Jan 8, 2025
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
2 changes: 2 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: psf/black@stable
with:
options: "--check --diff --line-length 79 --extend-exclude '/vendor/'"
3 changes: 3 additions & 0 deletions .github/workflows/checkbox-beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Verify Promotion Conditions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -43,6 +44,8 @@ jobs:
sudo apt install -qq -y python3-launchpadlib
- name: Checkout checkbox monorepo
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Copy deb packages from edge to beta ppa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/checkbox-ce-oem-daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Check for commits
id: commit_check
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/checkbox-ce-oem-edge-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Add LP credentials
run: |
mkdir -p ~/.local/share/snapcraft/provider/launchpad/
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/checkbox-core-snap-daily-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Copy over the common files for series ${{ matrix.releases }}
run: |
cd checkbox-core-snap/
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/checkbox-promote-beta-to-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
steps:
- name: Checkout checkbox monorepo
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Create job file (by instantiating template)
id: create-job
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/checkbox-snap-daily-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Copy over the common files for series ${{ matrix.type }}${{ matrix.releases }}
run: |
cd checkbox-snap/
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/checkbox-stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Install dependencies
run: |
which curl || (sudo apt update && sudo apt install curl -y)
Expand Down Expand Up @@ -56,6 +57,8 @@ jobs:
sudo apt install -qq -y python3-launchpadlib
- name: Checkout checkbox monorepo
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Copy deb packages from testing to stable ppa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/checkbox-tics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
schedule:
- cron: '00 19 * * *'
workflow_dispatch:

permissions:
contents: read

Expand All @@ -14,6 +14,8 @@ jobs:
environment: TICS
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install dependencies
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/daily-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Check for commits
id: commit_check
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deb-daily-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: Wandalen/wretry.action/main@v3.4.0_js_action
name: Make LP pull the monorepo
env:
Expand Down Expand Up @@ -69,6 +70,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: Wandalen/wretry.action/main@v3.4.0_js_action
name: Update the recipe in the checkbox PPA
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deb-sanity-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: Wandalen/wretry.action/main@v3.4.0_js_action
name: Make LP pull the monorepo
env:
Expand Down Expand Up @@ -48,6 +49,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: Wandalen/wretry.action/main@v3.4.0_js_action
name: Update the recipe in the checkbox PPA
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deb_validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
steps:
- name: Checkout Checkbox monorepo
uses: actions/checkout@v4
with:
persist-credentials: false
# needed by providers that pull checkbox-support
- name: Install PPA and dependencies
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dispatch_lab_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:

- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Get current commit SHA
id: get_sha
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/documentation-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install Aspell
run: |
Expand Down Expand Up @@ -57,6 +59,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: woke
uses: get-woke/woke-action@v0
Expand All @@ -82,6 +86,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install the doc framework
working-directory: docs/
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/metabox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Use git diff to see if there are any changes in the metabox and checkbox-ng directories
id: check_diff
run: |
Expand Down Expand Up @@ -51,6 +52,8 @@ jobs:
steps:
- name: Checkout Checkbox monorepo
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup LXD
uses: canonical/setup-lxd@main
- name: Add ZFS storage
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Install dependencies, Checkbox and providers
run: |
sudo apt install -y -qq python3 python3-venv jq libsystemd-dev
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/snapcraft8_builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Copy over the common files for series ${{ matrix.releases }}
run: |
cd checkbox-core-snap/
Expand Down Expand Up @@ -126,6 +127,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Copy over the common files for series ${{ matrix.type }}${{ matrix.releases }}
run: |
cd checkbox-snap/
Expand Down Expand Up @@ -201,6 +203,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Add LP credentials
run: |
mkdir -p ~/.local/share/snapcraft/
Expand Down Expand Up @@ -275,6 +278,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Add LP credentials
run: |
mkdir -p ~/.local/share/snapcraft/
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/testflinger-contrib-dss-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build job file from template
run: |
sed -e "s|REPLACE_BRANCH|${BRANCH}|" \
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tox-checkbox-ng.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
tox_env_name: "py310"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# Python 3.5 setup was failing because of a CERTIFICATE_VERIFY_FAILED
# error. To fix this, we have set up manually PIP_TRUSTED_HOST, checking
# first that we can "curl" the hosts, since they will fail in case of
Expand All @@ -52,7 +54,7 @@ jobs:
- name: Run tox
run: tox -e${{ matrix.tox_env_name }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: checkbox-ng
4 changes: 3 additions & 1 deletion .github/workflows/tox-checkbox-support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
tox_env_name: "py310"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# Python 3.5 setup was failing because of a CERTIFICATE_VERIFY_FAILED
# error. To fix this, we have set up manually PIP_TRUSTED_HOST, checking
# first that we can "curl" the hosts, since they will fail in case of
Expand All @@ -56,7 +58,7 @@ jobs:
- name: Run tox
run: tox -e${{ matrix.tox_env_name }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: checkbox-support
4 changes: 3 additions & 1 deletion .github/workflows/tox-contrib-pc-sanity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
tox_env_name: "py310"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand All @@ -34,7 +36,7 @@ jobs:
- name: Run tox
run: tox -e${{ matrix.tox_env_name }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: pc-sanity
4 changes: 3 additions & 1 deletion .github/workflows/tox-contrib-provider-ce-oem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
tox_env_name: "py310"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# Python 3.5 setup was failing because of a CERTIFICATE_VERIFY_FAILED
# error. To fix this, we have set up manually PIP_TRUSTED_HOST, checking
# first that we can "curl" the hosts, since they will fail in case of
Expand All @@ -56,7 +58,7 @@ jobs:
- name: Run tox
run: tox -e${{ matrix.tox_env_name }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: contrib-provider-ce-oem
4 changes: 3 additions & 1 deletion .github/workflows/tox-provider-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
tox_env_name: "py310"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# Python 3.5 setup was failing because of a CERTIFICATE_VERIFY_FAILED
# error. To fix this, we have set up manually PIP_TRUSTED_HOST, checking
# first that we can "curl" the hosts, since they will fail in case of
Expand All @@ -56,7 +58,7 @@ jobs:
- name: Run tox
run: tox -e${{ matrix.tox_env_name }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: provider-base
5 changes: 3 additions & 2 deletions .github/workflows/tox-provider-certification-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ jobs:
tox_env_name: "py310"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# Python 3.5 setup was failing because of a CERTIFICATE_VERIFY_FAILED
# error. To fix this, we have set up manually PIP_TRUSTED_HOST, checking
# first that we can "curl" the hosts, since they will fail in case of
# expired/invalid/self-signed certificate.

- name: Workaround SSL Certificates manual verification for Python
run: |
curl --fail --silent --show-error https://pypi.python.org
Expand All @@ -53,7 +54,7 @@ jobs:
- name: Run tox
run: tox -e${{ matrix.tox_env_name }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: provider-certification-client
4 changes: 3 additions & 1 deletion .github/workflows/tox-provider-certification-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
tox_env_name: "py310"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# Python 3.5 setup was failing because of a CERTIFICATE_VERIFY_FAILED
# error. To fix this, we have set up manually PIP_TRUSTED_HOST, checking
# first that we can "curl" the hosts, since they will fail in case of
Expand All @@ -52,7 +54,7 @@ jobs:
- name: Run tox
run: tox -e${{ matrix.tox_env_name }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: provider-certification-server
2 changes: 2 additions & 0 deletions .github/workflows/tox-provider-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
tox_env_name: "py310"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# Python 3.5 setup was failing because of a CERTIFICATE_VERIFY_FAILED
# error. To fix this, we have set up manually PIP_TRUSTED_HOST, checking
# first that we can "curl" the hosts, since they will fail in case of
Expand Down
Loading
Loading