Skip to content

Commit

Permalink
Do not persist credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Dec 20, 2024
1 parent 4305ba1 commit c8ee1bf
Show file tree
Hide file tree
Showing 34 changed files with 72 additions and 2 deletions.
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/[email protected]_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/[email protected]_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/[email protected]_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/[email protected]_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
2 changes: 2 additions & 0 deletions .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 Down
2 changes: 2 additions & 0 deletions .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 Down
2 changes: 2 additions & 0 deletions .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 Down
2 changes: 2 additions & 0 deletions .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 Down
2 changes: 2 additions & 0 deletions .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 Down
3 changes: 2 additions & 1 deletion .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 Down
2 changes: 2 additions & 0 deletions .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 Down
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
2 changes: 2 additions & 0 deletions .github/workflows/tox-provider-genio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,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
2 changes: 2 additions & 0 deletions .github/workflows/tox-provider-gpgpu.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
2 changes: 2 additions & 0 deletions .github/workflows/tox-provider-iiotg.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
2 changes: 2 additions & 0 deletions .github/workflows/tox-provider-resource.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
2 changes: 2 additions & 0 deletions .github/workflows/tox-provider-sru.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
2 changes: 2 additions & 0 deletions .github/workflows/tox-provider-tpm2.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
2 changes: 2 additions & 0 deletions .github/workflows/tox-tools-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit c8ee1bf

Please sign in to comment.