-
Notifications
You must be signed in to change notification settings - Fork 31
Feature/security attribute inference attacks #287
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
Open
fracarfer5
wants to merge
35
commits into
develop
Choose a base branch
from
feature/security-attribute-inference-attacks
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
ce6a83c
Update Main Branch (#279)
crismunoz 1fb319a
Update version and changelog
github-actions[bot] 4b1e639
chore: update release workflows (#282)
crismunoz d780055
Update version and changelog
github-actions[bot] bb51e35
fix: Update publish-workflow.yml (#283)
crismunoz d8b0cf3
chore: Update Workflow Names (#284)
crismunoz d9accfb
Update publish-slack-workflow.yml (#285)
crismunoz a868983
feat: adding attribute inference attacker codes to security module
fracarfer5 484dc9f
chore: adding tutorials for classification tasks in inference attribu…
fracarfer5 5b6dde0
refactor: updating attribute inference classification tutorials
fracarfer5 9224c0c
chore: adding tutorials for attribute inference for regression cases
fracarfer5 9ef597d
test: adding unit tests for attribute inference modules
fracarfer5 847f939
refactor: updating inits
fracarfer5 e9dd330
chore: fixing lint
fracarfer5 6ce7d6d
Develop (#292)
crismunoz 893c949
Develop (#294)
crismunoz 2bc4d3b
Update version and changelog
github-actions[bot] 8c36b26
Develop (#297)
crismunoz 7ff7e70
Update publish-testpypi-workflow.yml
crismunoz f96892b
Update version and changelog
github-actions[bot] ff2b35b
Update publish-testpypi-workflow.yml
crismunoz fbe9e3a
Update pyproject.toml
crismunoz bc37961
Update publish-testpypi-workflow.yml
crismunoz 36c4399
Update publish-testpypi-workflow.yml
crismunoz c94c18a
Update pyproject.toml
crismunoz 5612d64
Update publish-testpypi-workflow.yml
crismunoz a1546ee
Delete .github/workflows/publish-testpypi-workflow.yml
crismunoz fb80076
Create __init__.py
crismunoz 5180a9b
Update pyproject.toml
crismunoz 979fcdf
Update version and changelog
github-actions[bot] 96b084f
chore: fixing lint and formatting (#304)
fracarfer5 3a8004b
chore: deleting unused files
fracarfer5 1ff41af
refactor: updating tutorials
fracarfer5 28c08b1
refactor: updating attribute inference attackers
fracarfer5 afe8199
Merge branch 'main' of github.com:holistic-ai/holisticai into feature…
fracarfer5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| name: Publish PyPI | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/create-github-app-token@v1 | ||
| id: app-token | ||
| with: | ||
| app-id: ${{ secrets.APPLICATION_ID }} | ||
| private-key: ${{ secrets.APPLICATION_PRIVATE_KEY }} | ||
|
|
||
| - name: Checkout code | ||
| uses: actions/checkout@v4.2.2 | ||
| with: | ||
| fetch-tags: true | ||
| fetch-depth: 0 | ||
| ref: main | ||
| token: ${{ steps.app-token.outputs.token }} # Needed to trigger other actions | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5.3.0 | ||
| with: | ||
| python-version: "3.9" | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install hatch | ||
|
|
||
| - name: Get Latest Release Version | ||
| id: get_release | ||
| run: | | ||
| latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) | ||
| echo "Latest release version: $latest_tag" | ||
| echo "tag=$latest_tag" >> $GITHUB_ENV # Save the tag to an environment variable | ||
|
|
||
| - name: Publish to PyPI | ||
| env: | ||
| HATCH_INDEX_USER: __token__ | ||
| HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }} | ||
| run: | | ||
| hatch build | ||
| hatch publish | ||
|
|
||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -168,7 +168,7 @@ select = [ | |
| "ICN001", | ||
| "ICN002", | ||
| "ICN003", | ||
| "INP001", | ||
| #"INP001", | ||
| "INT001", | ||
| "INT002", | ||
| "INT003", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| __version__ = "1.0.9" | ||
| __version__ = "1.0.14" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions
Copilot Autofix
AI about 1 year ago
To fix the issue, we will add a
permissionsblock at the workflow level (root level) to restrict the permissions of theGITHUB_TOKEN. Based on the workflow's functionality, it primarily requires read access to repository contents (e.g., fetching tags and code). Therefore, we will setcontents: readas the minimal required permission. If additional permissions are needed in the future, they can be added explicitly.