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

Using hashes for all actions #81

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

bsipocz
Copy link
Member

@bsipocz bsipocz commented Jun 3, 2024

No description provided.

@@ -21,10 +21,10 @@ jobs:
if: github.repository == 'scientific-python/upload-nightly-action'

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tupui you said that maybe we had to use hash:hash ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm slightly less concerned about these for projects that are known. But maybe I don't understand @tupui's point.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am trying to find where I read that 😅 Still digging but yes the hack was that if you had a branch named as the hash, then it would be picked up. In the article they were mentioning some protections from GitHub but there was still a way to do the hack IIRC.

@bsipocz
Copy link
Member Author

bsipocz commented Jun 6, 2024

Given that we didn't find the syntax of specifying that the hash is a hash, let's go ahead with this as is. I tried to create 40 long hexa branches but couldn't do that on the GH web interface, nor I could push such a branch from a local checkout.

Screenshot 2024-06-05 at 17 44 11

@stefanv
Copy link
Member

stefanv commented Jun 6, 2024

Normal for CI to fail?

@bsipocz
Copy link
Member Author

bsipocz commented Jun 6, 2024

Normal for CI to fail?

I believe it is expected to fails for all but @matthewfeickert

@matthewfeickert
Copy link
Member

Normal for CI to fail?

I believe it is expected to fails for all but @matthewfeickert

No, it has nothing to do with my account, it just will always fail if a PR from a fork as the CI requires secrets that are repo/org specific, as described in #32 (comment)

@matthewfeickert
Copy link
Member

Given that we didn't find the syntax of specifying that the hash is a hash, let's go ahead with this as is. I tried to create 40 long hexa branches but couldn't do that on the GH web interface, nor I could push such a branch from a local checkout.

SGTM, so let's merge. :shipit:

@matthewfeickert matthewfeickert merged commit 39001e5 into scientific-python:main Jun 6, 2024
1 of 2 checks passed
@bsipocz
Copy link
Member Author

bsipocz commented Jun 6, 2024

No, it has nothing to do with my account, it just will always fail if a PR from a fork

Oh, ok. I haven't realized that you didn't open your PRs from your fork, just noticed that those all have the green tickmarks while the rest are crossed out.

@bsipocz bsipocz deleted the action_hashes branch June 18, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants